autotyping

Automatically add simple type annotations to your code

Downloads
22.3K
Stars
230
Committers
13
autotyping - 24.3.0 Latest Release

Published by JelleZijlstra 7 months ago

  • Add simpler ways to invoke autotyping. Now, it is possible to simply use
    python3 -m autotyping to invoke the tool. (Thanks to Shantanu Jain.)
  • Drop support for Python 3.7; add support for Python 3.12. (Thanks to Hugo
    van Kemenade.)
  • Infer return types for some more magic methods. (Thanks to Dhruv Manilawala.)
autotyping - 23.3.0

Published by JelleZijlstra over 1 year ago

  • Fix crash on certain argument names like iterables (contributed by
    Marco Gorelli)
autotyping - 23.2.0

Published by JelleZijlstra over 1 year ago

  • Add --guess-common-names (contributed by John Litborn)
  • Fix the --safe and --aggressive flags so they don't take
    ignored arguments
  • --length-hint should return int (contributed by Nikita Sobolev)
  • Fix bug in import adding (contributed by Shantanu)
autotyping - 22.9.0

Published by JelleZijlstra about 2 years ago

  • Add --safe and --aggressive
  • Add --pyanalyze-report
  • Do not add None return types to methods marked with @abstractmethod and
    to methods in stub files
  • Improve type inference:
    • "string" % ... is always str
    • b"bytes" % ... is always bytes
    • An and or or operator where left and right sides are of the same type
      returns that type
    • is, is not, in, and not in always return bool
autotyping - 21.12.0

Published by JelleZijlstra almost 3 years ago

Initial PyPI release