|
7 | 7 | Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator |
8 | 8 | """ |
9 | 9 |
|
| 10 | +from __future__ import annotations |
10 | 11 | import collections |
11 | 12 | import datetime |
12 | 13 | import functools |
@@ -1782,10 +1783,10 @@ class Schema_: |
1782 | 1783 | types = {NoneClass} |
1783 | 1784 |
|
1784 | 1785 | @classmethod |
1785 | | - def from_openapi_data_(cls, arg: None, configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None) -> TypedSchemas.None.NoneSchema[NoneClass]: |
| 1786 | + def from_openapi_data_(cls, arg: None, configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None) -> TypedSchemas.None_.NoneSchema[NoneClass]: |
1786 | 1787 | return super().from_openapi_data_(arg, configuration_=configuration_) |
1787 | 1788 |
|
1788 | | - def __new__(cls, arg_: None, **kwargs: schema_configuration.SchemaConfiguration) -> TypedSchemas.None.NoneSchema[NoneClass]: |
| 1789 | + def __new__(cls, arg_: None, **kwargs: schema_configuration.SchemaConfiguration) -> TypedSchemas.None_.NoneSchema[NoneClass]: |
1789 | 1790 | return super().__new__(cls, arg_, **kwargs) |
1790 | 1791 |
|
1791 | 1792 | _NoneSchema = NoneSchema |
@@ -2141,7 +2142,7 @@ class Schema_: |
2141 | 2142 | def from_openapi_data_(cls, arg: typing.Dict[str, typing.Any], configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None) -> TypedSchemas.Dict.DictSchema[frozendict.frozendict]: |
2142 | 2143 | return super().from_openapi_data_(arg, configuration_=configuration_) |
2143 | 2144 |
|
2144 | | - def __new__(cls, *args_: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]) -> -> TypedSchemas.Dict.DictSchema[frozendict.frozendict]: |
| 2145 | + def __new__(cls, *args_: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]) -> TypedSchemas.Dict.DictSchema[frozendict.frozendict]: |
2145 | 2146 | return super().__new__(cls, *args_, **kwargs) |
2146 | 2147 |
|
2147 | 2148 | _DictSchema = DictSchema |
@@ -2187,7 +2188,7 @@ class BoolSchema(_BoolSchema[T], BoolClass): |
2187 | 2188 | class AnyTypeSchema(_AnyTypeSchema[T], BoolClass): |
2188 | 2189 | pass |
2189 | 2190 |
|
2190 | | - class None: |
| 2191 | + class None_: |
2191 | 2192 | class NoneSchema(_NoneSchema[T], NoneClass): |
2192 | 2193 | pass |
2193 | 2194 |
|
|
0 commit comments