Skip to content

Commit

Permalink
Fix test, add blurb
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 6, 2024
1 parent 9ddde9d commit 5931094
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ def __getattr__(self, attr):
raise AttributeError(attr)

def __setattr__(self, attr, val):
if _is_dunder(attr) or attr in {'_name', '_inst', '_nparams'}:
if _is_dunder(attr) or attr in {'_name', '_inst', '_nparams', '_defaults'}:
super().__setattr__(attr, val)
else:
setattr(self.__origin__, attr, val)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add type parameter defaults to :class:`typing.Generator` and
:class:`typing.AsyncGenerator`.

0 comments on commit 5931094

Please sign in to comment.