Skip to content

Commit

Permalink
Deprecate trio.__version__
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Jan 21, 2025
1 parent 5ca9662 commit 73e8a5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/trio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@

_deprecate.enable_attribute_deprecations(__name__)

__deprecated_attributes__: dict[str, _deprecate.DeprecatedAttribute] = {}
__deprecated_attributes__: dict[str, _deprecate.DeprecatedAttribute] = {
"__version__": _deprecate.DeprecatedAttribute(
__version__, "0.29.0", issue=None, instead='importlib.metadata.version("trio")'
)
}

# Having the public path in .__module__ attributes is important for:
# - exception names in printed tracebacks
Expand Down

0 comments on commit 73e8a5f

Please sign in to comment.