Skip to content

Commit 0a427ec

Browse files
committed
Add unit test
1 parent 5afc576 commit 0a427ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_typing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10029,6 +10029,12 @@ def test_basic_with_exec(self):
1002910029
self.assertEqual(P.__name__, 'P')
1003010030
self.assertIs(P.__module__, None)
1003110031

10032+
def test_bound(self):
10033+
P1 = ParamSpec("P1")
10034+
P2 = ParamSpec("P2", bound=None)
10035+
self.assertIs(P1.__bound__, None)
10036+
self.assertIs(P2.__bound__, None)
10037+
1003210038
def test_valid_uses(self):
1003310039
P = ParamSpec('P')
1003410040
T = TypeVar('T')

0 commit comments

Comments
 (0)