We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231adb1 commit 9bbb25dCopy full SHA for 9bbb25d
bpython/test/test_inspection.py
@@ -77,6 +77,13 @@ def spam(eggs=23, foobar="yay"):
77
self.assertEqual(repr(defaults[0]), "23")
78
self.assertEqual(repr(defaults[1]), "'yay'")
79
80
+ def test_pasekeywordpairs_annotation(self):
81
+ def spam(eggs: str = "foo, bar"):
82
+ pass
83
+
84
+ defaults = inspection.getfuncprops("spam", spam).argspec.defaults
85
+ self.assertEqual(repr(defaults[0]), "'foo, bar'")
86
87
def test_get_encoding_ascii(self):
88
self.assertEqual(inspection.get_encoding(encoding_ascii), "ascii")
89
self.assertEqual(inspection.get_encoding(encoding_ascii.foo), "ascii")
0 commit comments