8000 gh-99535: Add test for inheritance of annotations and update documentation by MonadChains · Pull Request #99990 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-99535: Add test for inheritance of annotations and update documentation #99990

New issue

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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add additional test
  • Loading branch information
MonadChains committed Dec 7, 2022
commit 24a118e89fc44871ac0dc4fce373f41a712438c1
1 change: 1 addition & 0 deletions Lib/test/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ class F(C, A):
self.assertEqual(A.__annotations__, {"attr": int})
self.assertEqual(B.__annotations__, {})
self.assertEqual(C.__annotations__, {"attr" : str})
self.assertEqual(D.__annotations__, {"attr2" : int})
self.assertEqual(E.__annotations__, {})
self.assertEqual(F.__annotations__, {})

Expand Down
0