Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 5e7bb17

Browse files
committed
Uses typing instead of typing_extensions because python v3.8 is used
1 parent eed10a8 commit 5e7bb17

295 files changed

Lines changed: 1491 additions & 1491 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/petstore/python/docs/components/schema/additional_properties_with_array_of_enums.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Input Type | Return Type | Notes
5353
```
5454
type: typing.Union[
5555
typing.List[
56-
typing_extensions.Literal[
56+
typing.Literal[
5757
"_abc",
5858
"-efg",
5959
"(xyz)",
@@ -62,7 +62,7 @@ type: typing.Union[
6262
],
6363
],
6464
typing.Tuple[
65-
typing_extensions.Literal[
65+
typing.Literal[
6666
"_abc",
6767
"-efg",
6868
"(xyz)",
@@ -75,12 +75,12 @@ type: typing.Union[
7575
```
7676
Index | Input Type | Description | Notes
7777
------------- | ------------- | ------------- | -------------
78-
≥ 0 | typing_extensions.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | |
78+
≥ 0 | typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | |
7979

8080
## AdditionalPropertiesTuple
8181
```
8282
base class: typing.Tuple[
83-
typing_extensions.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"],
83+
typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"],
8484
...
8585
]
8686
```
@@ -93,6 +93,6 @@ configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None
9393
### methods
9494
Method | Input Type | Return Type | Notes
9595
------ | ---------- | ----------- | ------
96-
__getitem__ | int | typing_extensions.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | This method is used under the hood when instance[0] is called
96+
__getitem__ | int | typing.Literal["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M"] | This method is used under the hood when instance[0] is called
9797

9898
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)

samples/client/petstore/python/docs/components/schema/apple_req.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Input Type | Return Type | Notes
1111

1212
## AppleReqDictInput
1313
```
14-
type: typing_extensions.TypedDict
14+
type: typing.TypedDict
1515
```
1616
Key | Type | Description | Notes
1717
------------ | ------------- | ------------- | -------------

samples/client/petstore/python/docs/components/schema/array_of_enums.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: typing.Union[
1515
typing.List[
1616
typing.Union[
1717
None,
18-
typing_extensions.Literal[
18+
typing.Literal[
1919
"placed",
2020
"approved",
2121
"delivered",
@@ -28,7 +28,7 @@ type: typing.Union[
2828
typing.Tuple[
2929
typing.Union[
3030
None,
31-
typing_extensions.Literal[
31+
typing.Literal[
3232
"placed",
3333
"approved",
3434
"delivered",
@@ -43,14 +43,14 @@ type: typing.Union[
4343
```
4444
Index | Input Type | Description | Notes
4545
------------- | ------------- | ------------- | -------------
46-
≥ 0 | None, typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | |
46+
≥ 0 | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | |
4747

4848
## ArrayOfEnumsTuple
4949
```
5050
base class: typing.Tuple[
5151
typing.Union[
5252
None,
53-
typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"],
53+
typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"],
5454
],
5555
...
5656
]
@@ -64,6 +64,6 @@ configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None
6464
### methods
6565
Method | Input Type | Return Type | Notes
6666
------ | ---------- | ----------- | ------
67-
__getitem__ | int | None, typing_extensions.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | This method is used under the hood when instance[0] is called
67+
__getitem__ | int | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | This method is used under the hood when instance[0] is called
6868

6969
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)

samples/client/petstore/python/docs/components/schema/banana_req.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Input Type | Return Type | Notes
1111

1212
## BananaReqDictInput
1313
```
14-
type: typing_extensions.TypedDict
14+
type: typing.TypedDict
1515
```
1616
Key | Type | Description | Notes
1717
------------ | ------------- | ------------- | -------------

samples/client/petstore/python/docs/components/schema/basque_pig.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
1515
```
1616
Key | Type | Description | Notes
1717
------------ | ------------- | ------------- | -------------
18-
**className** | typing_extensions.Literal["BasquePig"] | | must be one of ["BasquePig"]
18+
**className** | typing.Literal["BasquePig"] | | must be one of ["BasquePig"]
1919
**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional]
2020

2121
## BasquePigDict
@@ -26,13 +26,13 @@ base class: schemas.immutabledict[str, str]
2626
### __new__ method
2727
Keyword Argument | Type | Description | Notes
2828
---------------- | ---- | ----------- | -----
29-
**className** | typing_extensions.Literal["BasquePig"] | | must be one of ["BasquePig"]
29+
**className** | typing.Literal["BasquePig"] | | must be one of ["BasquePig"]
3030
**kwargs** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method
3131

3232
### properties
3333
Property | Type | Description | Notes
3434
-------- | ---- | ----------- | -----
35-
**className** | typing_extensions.Literal["BasquePig"] | | must be one of ["BasquePig"]
35+
**className** | typing.Literal["BasquePig"] | | must be one of ["BasquePig"]
3636

3737
### methods
3838
Method | Input Type | Return Type | Notes

samples/client/petstore/python/docs/components/schema/boolean_enum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ type: schemas.Schema
77
## validate method
88
Input Type | Return Type | Notes
99
------------ | ------------- | -------------
10-
typing_extensions.Literal[True] | typing_extensions.Literal[True] | must be one of [True]
10+
typing.Literal[True] | typing.Literal[True] | must be one of [True]
1111

1212
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)

samples/client/petstore/python/docs/components/schema/complex_quadrilateral.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
3232
```
3333
Key | Type | Description | Notes
3434
------------ | ------------- | ------------- | -------------
35-
**quadrilateralType** | typing_extensions.Literal["ComplexQuadrilateral"] | | [optional] must be one of ["ComplexQuadrilateral"]
35+
**quadrilateralType** | typing.Literal["ComplexQuadrilateral"] | | [optional] must be one of ["ComplexQuadrilateral"]
3636
**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional]
3737

3838
## _1Dict
@@ -43,13 +43,13 @@ base class: schemas.immutabledict[str, str]
4343
### __new__ method
4444
Keyword Argument | Type | Description | Notes
4545
---------------- | ---- | ----------- | -----
46-
**quadrilateralType** | typing_extensions.Literal["ComplexQuadrilateral"], schemas.Unset | | [optional] must be one of ["ComplexQuadrilateral"]
46+
**quadrilateralType** | typing.Literal["ComplexQuadrilateral"], schemas.Unset | | [optional] must be one of ["ComplexQuadrilateral"]
4747
**kwargs** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method
4848

4949
### properties
5050
Property | Type | Description | Notes
5151
-------- | ---- | ----------- | -----
52-
**quadrilateralType** | typing_extensions.Literal["ComplexQuadrilateral"], schemas.Unset | | [optional] must be one of ["ComplexQuadrilateral"]
52+
**quadrilateralType** | typing.Literal["ComplexQuadrilateral"], schemas.Unset | | [optional] must be one of ["ComplexQuadrilateral"]
5353

5454
### methods
5555
Method | Input Type | Return Type | Notes

samples/client/petstore/python/docs/components/schema/currency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ type: schemas.Schema
77
## validate method
88
Input Type | Return Type | Notes
99
------------ | ------------- | -------------
10-
typing_extensions.Literal["eur", "usd"] | typing_extensions.Literal["eur", "usd"] | must be one of ["eur", "usd"]
10+
typing.Literal["eur", "usd"] | typing.Literal["eur", "usd"] | must be one of ["eur", "usd"]
1111

1212
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)

samples/client/petstore/python/docs/components/schema/danish_pig.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
1515
```
1616
Key | Type | Description | Notes
1717
------------ | ------------- | ------------- | -------------
18-
**className** | typing_extensions.Literal["DanishPig"] | | must be one of ["DanishPig"]
18+
**className** | typing.Literal["DanishPig"] | | must be one of ["DanishPig"]
1919
**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional]
2020

2121
## DanishPigDict
@@ -26,13 +26,13 @@ base class: schemas.immutabledict[str, str]
2626
### __new__ method
2727
Keyword Argument | Type | Description | Notes
2828
---------------- | ---- | ----------- | -----
29-
**className** | typing_extensions.Literal["DanishPig"] | | must be one of ["DanishPig"]
29+
**className** | typing.Literal["DanishPig"] | | must be one of ["DanishPig"]
3030
**kwargs** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method
3131

3232
### properties
3333
Property | Type | Description | Notes
3434
-------- | ---- | ----------- | -----
35-
**className** | typing_extensions.Literal["DanishPig"] | | must be one of ["DanishPig"]
35+
**className** | typing.Literal["DanishPig"] | | must be one of ["DanishPig"]
3636

3737
### methods
3838
Method | Input Type | Return Type | Notes

samples/client/petstore/python/docs/components/schema/enum_arrays.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
1515
```
1616
Key | Type | Description | Notes
1717
------------ | ------------- | ------------- | -------------
18-
**just_symbol** | typing_extensions.Literal[">=", "$"] | | [optional] must be one of [">=", "$"]
18+
**just_symbol** | typing.Literal[">=", "$"] | | [optional] must be one of [">=", "$"]
1919
**array_enum** | [ArrayEnumTupleInput](#arrayenumtupleinput), [ArrayEnumTuple](#arrayenumtuple) | | [optional]
2020
**any_string_name** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional]
2121

@@ -27,14 +27,14 @@ base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]
2727
### __new__ method
2828
Keyword Argument | Type | Description | Notes
2929
---------------- | ---- | ----------- | -----
30-
**just_symbol** | typing_extensions.Literal[">=", "$"], schemas.Unset | | [optional] must be one of [">=", "$"]
30+
**just_symbol** | typing.Literal[">=", "$"], schemas.Unset | | [optional] must be one of [">=", "$"]
3131
**array_enum** | [ArrayEnumTupleInput](#arrayenumtupleinput), [ArrayEnumTuple](#arrayenumtuple), schemas.Unset | | [optional]
3232
**kwargs** | dict, schemas.immutabledict, list, tuple, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method
3333

3434
### properties
3535
Property | Type | Description | Notes
3636
-------- | ---- | ----------- | -----
37-
**just_symbol** | typing_extensions.Literal[">=", "$"], schemas.Unset | | [optional] must be one of [">=", "$"]
37+
**just_symbol** | typing.Literal[">=", "$"], schemas.Unset | | [optional] must be one of [">=", "$"]
3838
**array_enum** | [ArrayEnumTuple](#arrayenumtuple), schemas.Unset | | [optional]
3939

4040
### methods
@@ -57,13 +57,13 @@ Input Type | Return Type | Notes
5757
```
5858
type: typing.Union[
5959
typing.List[
60-
typing_extensions.Literal[
60+
typing.Literal[
6161
"fish",
6262
"crab"
6363
],
6464
],
6565
typing.Tuple[
66-
typing_extensions.Literal[
66+
typing.Literal[
6767
"fish",
6868
"crab"
6969
],
@@ -73,12 +73,12 @@ type: typing.Union[
7373
```
7474
Index | Input Type | Description | Notes
7575
------------- | ------------- | ------------- | -------------
76-
≥ 0 | typing_extensions.Literal["fish", "crab"] | | must be one of ["fish", "crab"]
76+
≥ 0 | typing.Literal["fish", "crab"] | | must be one of ["fish", "crab"]
7777

7878
## ArrayEnumTuple
7979
```
8080
base class: typing.Tuple[
81-
typing_extensions.Literal["fish", "crab"],
81+
typing.Literal["fish", "crab"],
8282
...
8383
]
8484
```
@@ -91,6 +91,6 @@ configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None
9191
### methods
9292
Method | Input Type | Return Type | Notes
9393
------ | ---------- | ----------- | ------
94-
__getitem__ | int | typing_extensions.Literal["fish", "crab"] | must be one of ["fish", "crab"] This method is used under the hood when instance[0] is called
94+
__getitem__ | int | typing.Literal["fish", "crab"] | must be one of ["fish", "crab"] This method is used under the hood when instance[0] is called
9595

9696
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)

0 commit comments

Comments
 (0)