mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: do not use "object" for the type annotation
Usually we use "Any" type for the type annotation which takes any kinds of types, instead of "object" class. So this replaces "object" to "Any" in our example.
This commit is contained in:
@@ -490,7 +490,7 @@ def test_autodoc_typehints_signature(app):
|
||||
'.. py:module:: target.typehints',
|
||||
'',
|
||||
'',
|
||||
'.. py:class:: Math(s: str, o: object = None)',
|
||||
'.. py:class:: Math(s: str, o: Any = None)',
|
||||
' :module: target.typehints',
|
||||
'',
|
||||
'',
|
||||
|
Reference in New Issue
Block a user