gh-149171: Make TypeAliasType __module__ writable · python/cpython@ddb11af · GitHub
Skip to content

Commit ddb11af

Browse files
gh-149171: Make TypeAliasType __module__ writable
closes #149171.
1 parent 8851a06 commit ddb11af

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

Lib/test/test_type_aliases.py

Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Allow assignment to the ``__module__`` attribute of
2+
:class:`typing.TypeAliasType` instances.

Objects/typevarobject.c

Lines changed: 11 additions & 1 deletion

0 commit comments

Comments
 (0)