Changelog¶
v2.0.0 (2025-04-21)¶
- Changed the default for
standard_collection_syntax
from"as_given"
to"standard_class"
. This change is intended to encourage the use of the standard collection syntax, since all currently supported Python versions support it and the typing module aliases are deprecated. - Removed support for Python 3.8.
- Added support for Python 3.13.
- Removed deprecated
LITERAL_TYPE_SUPPORTED
flag. (Deprecated in v1.1.0.)
Note: the typenames repository has moved to the drivendataorg GitHub organization. The documentation website has also moved to a new address.
v1.3.0 (2024-07-16)¶
- Changed how
typenames
handles type annotations that includetyping.Annotated
ortyping_extensions.Annotated
. (PR #8, Issue #7)- Added
include_extras
configuration option totypenames
to control whetherAnnotated
and metadata should be shown. - By default,
include_extras
isFalse
, andAnnotated
and extra metadata will not be rendered.
- Added
v1.2.0 (2024-03-19)¶
- Fixed the type signatures of
typenames
andparse_type_tree
to reflect the typing of input type annotations, according to static type checkers. (PR #6) - Added PEP 561
py.typed
marker file to indicate that the package supports type checking. (PR #6)
v1.1.0 (2024-03-08)¶
- Changed
REMOVE_ALL_MODULES
's regex pattern to also remove<locals>
from rendered output.<locals>
typically appears in a type's qualified name if the type was defined within the local scope of a function or class method. (PR #4) - Removed support for Python 3.7. (PR #5)
- Deprecated
LITERAL_TYPE_SUPPORTED
flag, since typenames no longer supports Python versions where this is false. (PR #5)
v1.0.0 (2023-02-20)¶
Initial release! 🎉