We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hasattr
test_typing
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2022-01-20.08:59:44.697> created_at = <Date 2022-01-19.17:42:38.412> labels = ['type-bug', 'tests', '3.11'] title = 'Non-required `hasattr` checks in `test_typing`' updated_at = <Date 2022-01-20.08:59:44.697> user = 'https://github.com/sobolevn'
bugs.python.org fields:
activity = <Date 2022-01-20.08:59:44.697> actor = 'AlexWaygood' assignee = 'none' closed = True closed_date = <Date 2022-01-20.08:59:44.697> closer = 'AlexWaygood' components = ['Tests'] creation = <Date 2022-01-19.17:42:38.412> creator = 'sobolevn' dependencies = [] files = [] hgrepos = [] issue_num = 46437 keywords = ['patch'] message_count = 4.0 messages = ['410974', '410985', '410986', '410987'] nosy_count = 4.0 nosy_names = ['gvanrossum', 'miss-islington', 'sobolevn', 'kj'] pr_nums = ['30704', '30713', '30714'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue46437' versions = ['Python 3.11']
The text was updated successfully, but these errors were encountered:
There are several legacy hasattr checks that are always True in newer Python versions:
True
cpython/Lib/test/test_typing.py
Line 3516 in d45cd2d
Line 5133 in d45cd2d
I think it is safe to delete them.
Sorry, something went wrong.
New changeset 263c0dd by Nikita Sobolev in branch 'main': bpo-46437: remove useless hasattr from test_typing (bpo-30704) 263c0dd
New changeset 3b51926 by Miss Islington (bot) in branch '3.9': bpo-46437: remove useless hasattr from test_typing (GH-30704) 3b51926
New changeset 07b12fd by Miss Islington (bot) in branch '3.10': bpo-46437: remove useless hasattr from test_typing (GH-30704) 07b12fd
No branches or pull requests
hasattr
fromtest_typing
#30704hasattr
fromtest_typing
(GH-30704) #30713hasattr
fromtest_typing
(GH-30704) #30714Note: 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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: