Skip to content

v0.2.8

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Jun 22:04
Immutable release. Only release title and notes can be modified.

Fixed

  • Keep a module-level assignment that calls a local definition after the names that call
    needs at runtime. APP = App() only references App syntactically, but
    instantiating it runs App.__init__, which may read a module-level function defined
    later in the file. Such an assignment was previously hoisted above that function and
    raised NameError at import. The runtime references reachable through a called
    class or function (transitively) are now treated as dependencies of the calling
    assignment.
  • Do not sort the keyword arguments of an OrderedDict call. OrderedDict(b=2, a=1) iterates in argument order and is a distinct value from OrderedDict(a=1, b=2), so reordering its keyword arguments changed the resulting object. Calls to
    OrderedDict (bare or dotted, such as collections.OrderedDict) are now left
    untouched.