Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c4191ac

Browse filesBrowse 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
Copy full SHA for c4191ac

File tree

Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed

‎typing_extensions/src_py3/test_typing_extensions.py

Copy file name to clipboardExpand all lines: typing_extensions/src_py3/test_typing_extensions.py
+4Lines 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

Copy file name to clipboardExpand all lines: typing_extensions/src_py3/typing_extensions.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.