Skip to content

Commit 1bd079f

Browse files
committed
Add test also for functional interface
1 parent e2abebf commit 1bd079f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test_typing_extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4264,6 +4264,10 @@ class TD3(TypedDict, total=False):
42644264

42654265
self.assertIs(TD3.__total__, False)
42664266

4267+
TD4 = TypedDict('TD4', {'__total__': "some_value"}) # noqa: F821
4268+
self.assertIs(TD4.__total__, True)
4269+
4270+
42674271
def test_optional_keys(self):
42684272
class Point2Dor3D(Point2D, total=False):
42694273
z: int

0 commit comments

Comments
 (0)