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 a7932f7 commit b97ddefCopy full SHA for b97ddef
Lib/test/test_inspect/test_inspect.py
@@ -1807,10 +1807,6 @@ def test_formatannotationrelativeto(self):
1807
inspect.formatannotationrelativeto(None)(A),
1808
'testModule.typing.A',
1809
)
1810
- self.assertEqual(
1811
- inspect.formatannotationrelativeto(A)(A),
1812
- 'A',
1813
- )
1814
1815
class B: ...
1816
B.__module__ = 'testModule.typing'
@@ -1820,11 +1816,8 @@ class B: ...
1820
'A',
1821
1817
1822
1818
1823
- class C: ...
1824
- C.__module__ = 'other'
1825
-
1826
1819
self.assertEqual(
1827
- inspect.formatannotationrelativeto(C)(A),
+ inspect.formatannotationrelativeto(object)(A),
1828
1829
1830
0 commit comments