Skip to content

Commit c4191ac

Browse files
authored
Add a missing comma to __all__ (#808)
* BUG: Added a missing comma in `__all__` * TST: Add a test to ensure that all objects in `__all__` are present in the module
1 parent fcc7df6 commit c4191ac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

typing_extensions/src_py3/test_typing_extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,6 +2191,10 @@ def test_typing_extensions_includes_standard(self):
21912191
self.assertIn('Protocol', a)
21922192
self.assertIn('runtime', a)
21932193

2194+
# Check that all objects in `__all__` are present in the module
2195+
for name in a:
2196+
self.assertTrue(hasattr(typing_extensions, name))
2197+
21942198
def test_typing_extensions_defers_when_possible(self):
21952199
exclude = {
21962200
'overload',

typing_extensions/src_py3/typing_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _check_methods_in_mro(C, *methods):
136136
'Counter',
137137
'Deque',
138138
'DefaultDict',
139-
'OrderedDict'
139+
'OrderedDict',
140140
'TypedDict',
141141

142142
# Structural checks, a.k.a. protocols.

0 commit comments

Comments
 (0)