Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ This python library package is generated without supporting files like setup.py
To be able to use it, you will need these dependencies in your own package that uses this library:

* urllib3 >= 2.1.0, < 3.0.0
* python-dateutil >= 2.8.2
{{#async}}
* aiohttp >= 3.8.4
* aiohttp-retry >= 2.8.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
Expand Down Expand Up @@ -973,9 +972,7 @@ https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb
:return: date.
"""
try:
return parse(string).date()
except ImportError:
return string
return datetime.datetime.fromisoformat(string).date()
except ValueError:
raise rest.ApiException(
status=0,
Expand All @@ -991,9 +988,7 @@ https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb
:return: datetime.
"""
try:
return parse(string)
except ImportError:
return string
return datetime.datetime.fromisoformat(string)
except ValueError:
raise rest.ApiException(
status=0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ python = "^3.11"
{{^async}}
urllib3 = ">= 2.7.0, < 3.0.0"
{{/async}}
python-dateutil = ">= 2.8.2"
{{#asyncio}}
aiohttp = ">= 3.14.1"
aiohttp-retry = ">= 2.8.3"
Expand All @@ -66,7 +65,6 @@ dependencies = [
{{^async}}
"urllib3 (>=2.7.0,<3.0.0)",
{{/async}}
"python-dateutil (>=2.8.2)",
{{#httpx}}
"httpx (>=0.28.1)",
{{/httpx}}
Expand Down Expand Up @@ -96,7 +94,6 @@ pytest = ">= 9.0.3"
pytest-cov = ">= 2.8.1"
tox = ">= 3.9.0"
flake8 = ">= 4.0.0"
types-python-dateutil = ">= 2.8.19.14"
mypy = ">= 1.5"
{{/poetry1}}
{{^poetry1}}
Expand All @@ -106,7 +103,6 @@ dev = [
"pytest-cov>=2.8.1",
"tox>=3.9.0",
"flake8>=4.0.0",
"types-python-dateutil>=2.8.19.14",
"mypy>=1.5",
]
{{/poetry1}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{^async}}
urllib3 >= 2.7.0, < 3.0.0
{{/async}}
python_dateutil >= 2.8.2
{{#asyncio}}
aiohttp >= 3.14.1
aiohttp-retry >= 2.8.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ REQUIRES = [
{{^async}}
"urllib3 >= 2.7.0, < 3.0.0",
{{/async}}
"python-dateutil >= 2.8.2",
{{#asyncio}}
"aiohttp >= 3.14.1",
"aiohttp-retry >= 2.8.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pytest >= 9.0.3
pytest-cov >= 2.8.1
tox >= 3.9.0
flake8 >= 4.0.0
types-python-dateutil >= 2.8.19.14
mypy >= 1.5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
Expand Down Expand Up @@ -807,9 +806,7 @@ def __deserialize_date(self, string):
:return: date.
"""
try:
return parse(string).date()
except ImportError:
return string
return datetime.datetime.fromisoformat(string).date()
except ValueError:
raise rest.ApiException(
status=0,
Expand All @@ -825,9 +822,7 @@ def __deserialize_datetime(self, string):
:return: datetime.
"""
try:
return parse(string)
except ImportError:
return string
return datetime.datetime.fromisoformat(string)
except ValueError:
raise rest.ApiException(
status=0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ requires-python = ">=3.11"

dependencies = [
"urllib3 (>=2.7.0,<3.0.0)",
"python-dateutil (>=2.8.2)",
"pydantic (>=2.11)",
"typing-extensions (>=4.7.1)",
]
Expand All @@ -26,7 +25,6 @@ dev = [
"pytest-cov>=2.8.1",
"tox>=3.9.0",
"flake8>=4.0.0",
"types-python-dateutil>=2.8.19.14",
"mypy>=1.5",
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
urllib3 >= 2.7.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2.11
typing-extensions >= 4.7.1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
PYTHON_REQUIRES = ">= 3.11"
REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
"python-dateutil >= 2.8.2",
"pydantic >= 2.11",
"typing-extensions >= 4.7.1",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pytest >= 9.0.3
pytest-cov >= 2.8.1
tox >= 3.9.0
flake8 >= 4.0.0
types-python-dateutil >= 2.8.19.14
mypy >= 1.5
9 changes: 2 additions & 7 deletions samples/client/echo_api/python/openapi_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
Expand Down Expand Up @@ -807,9 +806,7 @@ def __deserialize_date(self, string):
:return: date.
"""
try:
return parse(string).date()
except ImportError:
return string
return datetime.datetime.fromisoformat(string).date()
except ValueError:
raise rest.ApiException(
status=0,
Expand All @@ -825,9 +822,7 @@ def __deserialize_datetime(self, string):
:return: datetime.
"""
try:
return parse(string)
except ImportError:
return string
return datetime.datetime.fromisoformat(string)
except ValueError:
raise rest.ApiException(
status=0,
Expand Down
2 changes: 0 additions & 2 deletions samples/client/echo_api/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ requires-python = ">=3.11"

dependencies = [
"urllib3 (>=2.7.0,<3.0.0)",
"python-dateutil (>=2.8.2)",
"pydantic (>=2.11)",
"typing-extensions (>=4.7.1)",
]
Expand All @@ -26,7 +25,6 @@ dev = [
"pytest-cov>=2.8.1",
"tox>=3.9.0",
"flake8>=4.0.0",
"types-python-dateutil>=2.8.19.14",
"mypy>=1.5",
]

Expand Down
1 change: 0 additions & 1 deletion samples/client/echo_api/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
urllib3 >= 2.7.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2.11
typing-extensions >= 4.7.1
1 change: 0 additions & 1 deletion samples/client/echo_api/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
PYTHON_REQUIRES = ">= 3.11"
REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
"python-dateutil >= 2.8.2",
"pydantic >= 2.11",
"typing-extensions >= 4.7.1",
]
Expand Down
1 change: 0 additions & 1 deletion samples/client/echo_api/python/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pytest >= 9.0.3
pytest-cov >= 2.8.1
tox >= 3.9.0
flake8 >= 4.0.0
types-python-dateutil >= 2.8.19.14
mypy >= 1.5
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
Expand Down Expand Up @@ -888,9 +887,7 @@ def __deserialize_date(self, string):
:return: date.
"""
try:
return parse(string).date()
except ImportError:
return string
return datetime.datetime.fromisoformat(string).date()
except ValueError:
raise rest.ApiException(
status=0,
Expand All @@ -906,9 +903,7 @@ def __deserialize_datetime(self, string):
:return: datetime.
"""
try:
return parse(string)
except ImportError:
return string
return datetime.datetime.fromisoformat(string)
except ValueError:
raise rest.ApiException(
status=0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ requires-python = ">=3.11"

dependencies = [
"urllib3 (>=2.7.0,<3.0.0)",
"python-dateutil (>=2.8.2)",
"pydantic (>=2.11)",
"typing-extensions (>=4.7.1)",
]
Expand All @@ -25,7 +24,6 @@ dev = [
"pytest-cov>=2.8.1",
"tox>=3.9.0",
"flake8>=4.0.0",
"types-python-dateutil>=2.8.19.14",
"mypy>=1.5",
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
urllib3 >= 2.7.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2.11
typing-extensions >= 4.7.1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
PYTHON_REQUIRES = ">= 3.11"
REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
"python-dateutil >= 2.8.2",
"pydantic >= 2.11",
"typing-extensions >= 4.7.1",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pytest >= 9.0.3
pytest-cov >= 2.8.1
tox >= 3.9.0
flake8 >= 4.0.0
types-python-dateutil >= 2.8.19.14
mypy >= 1.5
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
Expand Down Expand Up @@ -814,9 +813,7 @@ def __deserialize_date(self, string):
:return: date.
"""
try:
return parse(string).date()
except ImportError:
return string
return datetime.datetime.fromisoformat(string).date()
except ValueError:
raise rest.ApiException(
status=0,
Expand All @@ -832,9 +829,7 @@ def __deserialize_datetime(self, string):
:return: datetime.
"""
try:
return parse(string)
except ImportError:
return string
return datetime.datetime.fromisoformat(string)
except ValueError:
raise rest.ApiException(
status=0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ include = ["petstore_api/py.typed"]

[tool.poetry.dependencies]
python = "^3.11"
python-dateutil = ">= 2.8.2"
aiohttp = ">= 3.14.1"
aiohttp-retry = ">= 2.8.3"
pem = ">= 19.3.0"
Expand All @@ -24,7 +23,6 @@ pytest = ">= 9.0.3"
pytest-cov = ">= 2.8.1"
tox = ">= 3.9.0"
flake8 = ">= 4.0.0"
types-python-dateutil = ">= 2.8.19.14"
mypy = ">= 1.5"


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
python_dateutil >= 2.8.2
aiohttp >= 3.14.1
aiohttp-retry >= 2.8.3
pem >= 19.3.0
Expand Down
1 change: 0 additions & 1 deletion samples/openapi3/client/petstore/python-aiohttp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
VERSION = "1.0.0"
PYTHON_REQUIRES = ">= 3.11"
REQUIRES = [
"python-dateutil >= 2.8.2",
"aiohttp >= 3.14.1",
"aiohttp-retry >= 2.8.3",
"pem >= 19.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pytest >= 9.0.3
pytest-cov >= 2.8.1
tox >= 3.9.0
flake8 >= 4.0.0
types-python-dateutil >= 2.8.19.14
mypy >= 1.5
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
Expand Down Expand Up @@ -817,9 +816,7 @@ def __deserialize_date(self, string):
:return: date.
"""
try:
return parse(string).date()
except ImportError:
return string
return datetime.datetime.fromisoformat(string).date()
except ValueError:
raise rest.ApiException(
status=0,
Expand All @@ -835,9 +832,7 @@ def __deserialize_datetime(self, string):
:return: datetime.
"""
try:
return parse(string)
except ImportError:
return string
return datetime.datetime.fromisoformat(string)
except ValueError:
raise rest.ApiException(
status=0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
requires-python = ">=3.11"

dependencies = [
"python-dateutil (>=2.8.2)",
"httpx (>=0.28.1)",
"pem (>=19.3.0)",
"pycryptodome (>=3.9.0)",
Expand All @@ -28,7 +27,6 @@ dev = [
"pytest-cov>=2.8.1",
"tox>=3.9.0",
"flake8>=4.0.0",
"types-python-dateutil>=2.8.19.14",
"mypy>=1.5",
]

Expand Down
Loading
Loading