Skip to content

Commit 767d806

Browse files
committed
style: Obey pylint
1 parent e9c8eeb commit 767d806

File tree

1 file changed

+3
-10
lines changed
  • openapi_python_client/schema/openapi_schema_pydantic

1 file changed

+3
-10
lines changed

Diff for: openapi_python_client/schema/openapi_schema_pydantic/callback.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22

33
if TYPE_CHECKING:
44
from .path_item import PathItem
5+
else:
6+
PathItem = "PathItem" # pylint: disable=invalid-name
57

6-
Callback = Dict[str, "PathItem"]
8+
Callback = Dict[str, PathItem]
79
"""
810
A map of possible out-of band callbacks related to the parent operation.
911
Each value in the map is a [Path Item Object](#pathItemObject)
1012
that describes a set of requests that may be initiated by the API provider and the expected responses.
1113
The key value used to identify the path item object is an expression, evaluated at runtime,
1214
that identifies a URL to use for the callback operation.
1315
"""
14-
15-
"""Patterned Fields"""
16-
17-
# {expression}: 'PathItem' = ...
18-
"""
19-
A Path Item Object used to define a callback request and expected responses.
20-
21-
A [complete example](../examples/v3.0/callback-example.yaml) is available.
22-
"""

0 commit comments

Comments
 (0)