File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
import ast
5
5
from collections .abc import Sequence
6
6
from pathlib import Path
7
- from typing import List , Union
7
+ from typing import List
8
8
9
9
from .docscrape_sphinx import get_doc_object
10
10
from .hooks import utils , validate_docstrings
11
11
from .validate import ERROR_MSGS , Validator , validate
12
12
13
13
14
- def render_object (import_path : str , config : Union [ List [str ], None ] = None ) -> int :
14
+ def render_object (import_path : str , config : List [str ] | None = None ) -> int :
15
15
"""Test numpydoc docstring generation for a given object."""
16
16
# TODO: Move Validator._load_obj to a better place than validate
17
17
print (get_doc_object (Validator ._load_obj (import_path ), config = dict (config or [])))
@@ -117,7 +117,7 @@ def _parse_config(s):
117
117
return ap
118
118
119
119
120
- def main (argv : Union [ Sequence [str ], None ] = None ) -> int :
120
+ def main (argv : Sequence [str ] | None = None ) -> int :
121
121
"""CLI for numpydoc."""
122
122
ap = get_parser ()
123
123
You can’t perform that action at this time.
0 commit comments