Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.2.1 - Stubber changes and fixes #4

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

CCP-Zeulix
Copy link
Collaborator

Changed

  • Stubber now has an option to only "export" the resulting "Final" stub class and keeping all the other stubs "private" and this option is True by default (they don't really need to be public)
  • You can now give the resulting "Final" config stub a custom name
  • You can also give the "Final" config stub an empty string for a name which will simply omit generating it (for custom/complex composition of stubs later on if people want)
  • All stubs now also inherit from dict because any attribute in BaseConfig that's a Map (and thus has a stub class) will also behave as a dict (even if Empty)

Fixed

  • Stubber now appends an underscore to stubs with Python reserved keywords like class and def etc.
  • The BaseConfig object now also spots attribute fetching of those keywords with an appended underscore and fetches the correct attribute nevertheless.

### Changed

- Stubber now has an option to only "export" the resulting "Final" stub
  class and keeping all the other stubs "private" and this option is True by
  default (they don't really need to be public)
- You can now give the resulting "Final" config stub a custom name
- You can also give the "Final" config stub an empty string for a name which
  will simply omit generating it (for custom/complex composition of stubs
  later on if people want)
- All stubs now also inherit from `dict` because any attribute in
  `BaseConfig` that's a Map (and thus has a stub class) will also behave as
  a `dict` (even if `Empty`)

### Fixed

- Stubber now appends an underscore to stubs with Python reserved keywords
  like `class` and `def` etc.
- The `BaseConfig` object now also spots attribute fetching of those
  keywords with an appended underscore and fetches the correct attribute
  nevertheless.
@CCP-Zeulix CCP-Zeulix merged commit 6e640d6 into main Apr 30, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant