mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: Adjust type annotataions in python 3.10.0b1
This commit is contained in:
@@ -183,10 +183,7 @@ def test_signature_annotations():
|
||||
|
||||
# Instance annotations
|
||||
sig = inspect.signature(f11)
|
||||
if sys.version_info < (3, 10):
|
||||
assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None'
|
||||
else:
|
||||
assert stringify_signature(sig) == '(x: CustomAnnotation(), y: 123) -> None'
|
||||
assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None'
|
||||
|
||||
# tuple with more than two items
|
||||
sig = inspect.signature(f12)
|
||||
|
||||
Reference in New Issue
Block a user