Skip to content

Version 3.2.1 - Stubber changes and fixes

Compare
Choose a tag to compare
@CCP-Zeulix CCP-Zeulix released this 30 Apr 10:08
· 3 commits to main since this release
6e640d6

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.