Skip to content

Commit

Permalink
Add a missing comma to __all__ (#808)
Browse files Browse the repository at this point in the history
* BUG: Added a missing comma in `__all__`

* TST: Add a test to ensure that all objects in `__all__`  are present in the module
  • Loading branch information
BvB93 committed May 4, 2021
1 parent fcc7df6 commit c4191ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions typing_extensions/src_py3/test_typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,10 @@ def test_typing_extensions_includes_standard(self):
self.assertIn('Protocol', a)
self.assertIn('runtime', a)

# Check that all objects in `__all__` are present in the module
for name in a:
self.assertTrue(hasattr(typing_extensions, name))

def test_typing_extensions_defers_when_possible(self):
exclude = {
'overload',
Expand Down
2 changes: 1 addition & 1 deletion typing_extensions/src_py3/typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _check_methods_in_mro(C, *methods):
'Counter',
'Deque',
'DefaultDict',
'OrderedDict'
'OrderedDict',
'TypedDict',

# Structural checks, a.k.a. protocols.
Expand Down

0 comments on commit c4191ac

Please sign in to comment.