You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add additional tests for new features in typing.py #90843
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2022-02-19.01:57:22.817>created_at=<Date2022-02-08.20:03:46.542>labels= ['type-bug', 'tests', '3.11']
title='Add additional tests for new features in `typing.py`'updated_at=<Date2022-02-19.01:57:22.817>user='https://github.com/sobolevn'
Activity
sobolevn commentedon Feb 8, 2022
New features (like
Selftype andNevertype), in my opinion, require some extra testing.Things that were not covered:
Self, onlytype(Self)is covered:cpython/Lib/test/test_typing.py
Lines 193 to 196 in c018d30
SelfandNever. We should be sure thatNoReturnis not equal toNever, but they are equal to themselfsget_type_hintswithNeverget_originwithSelfandNevertypes, it should returnNonefor both casescpython/Lib/typing.py
Line 725 in c018d30
Maybe there are some other cases?
I will send a PR :)
JelleZijlstra commentedon Feb 8, 2022
Thanks for catching these details! Please send a PR.
corona10 commentedon Feb 9, 2022
New changeset d2d1d49 by Nikita Sobolev in branch 'main':
bpo-46685: cover
TypeErrorofForwardRef(1)intest_typing(GH-31223)d2d1d49
miss-islington commentedon Feb 9, 2022
New changeset d29bbc2 by Miss Islington (bot) in branch '3.10':
bpo-46685: cover
TypeErrorofForwardRef(1)intest_typing(GH-31223)d29bbc2
miss-islington commentedon Feb 9, 2022
New changeset bde3765 by Miss Islington (bot) in branch '3.9':
bpo-46685: cover
TypeErrorofForwardRef(1)intest_typing(GH-31223)bde3765
JelleZijlstra commentedon Feb 19, 2022
New changeset 32e3e0b by Nikita Sobolev in branch 'main':
bpo-46685: improve test coverage of
SelfandNeverintyping(GH-31222)32e3e0b