Skip to content

Commit f94c963

Browse files
committed
Update dependencies
Specifically, httpx updated to ^0.13.0 in both generator and generated clients.
1 parent 27f3815 commit f94c963

File tree

7 files changed

+55
-39
lines changed

7 files changed

+55
-39
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
named "statuses" is an array of enum values, previously the `Enum` class declared would be called "Statuses". Now it
1212
will be called "StatusesItem". If a "title" attribute was used in the OpenAPI document, that should still be respected
1313
and used instead of the generated name.
14+
- Clients now require httpx ^0.13.0 (up from ^0.12.1)
1415

1516
### Additions
1617
- Support for binary format strings (file payloads)

end_to_end_tests/golden-master/my_test_api_client/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass
2-
from typing import Dict
2+
from typing import Dict, Union
33

44

55
@dataclass
@@ -8,7 +8,7 @@ class Client:
88

99
base_url: str
1010

11-
def get_headers(self) -> Dict[str, str]:
11+
def get_headers(self) -> Dict[Union[str, bytes], Union[str, bytes]]:
1212
""" Get headers to be used in all endpoints """
1313
return {}
1414

@@ -19,6 +19,6 @@ class AuthenticatedClient(Client):
1919

2020
token: str
2121

22-
def get_headers(self) -> Dict[str, str]:
22+
def get_headers(self) -> Dict[Union[str, bytes], Union[str, bytes]]:
2323
""" Get headers to be used in authenticated endpoints """
2424
return {"Authorization": f"Bearer {self.token}"}

end_to_end_tests/golden-master/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.8"
17-
httpx = "^0.12.1"
17+
httpx = "^0.13.0"
1818

1919
[tool.black]
2020
line-length = 120
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from dataclasses import dataclass
2-
from typing import Dict
2+
from typing import Dict, Union
33

44
@dataclass
55
class Client:
66
""" A class for keeping track of data related to the API """
77

88
base_url: str
99

10-
def get_headers(self) -> Dict[str, str]:
10+
def get_headers(self) -> Dict[Union[str, bytes], Union[str, bytes]]:
1111
""" Get headers to be used in all endpoints """
1212
return {}
1313

@@ -17,6 +17,6 @@ class AuthenticatedClient(Client):
1717

1818
token: str
1919

20-
def get_headers(self) -> Dict[str, str]:
20+
def get_headers(self) -> Dict[Union[str, bytes], Union[str, bytes]]:
2121
""" Get headers to be used in authenticated endpoints """
2222
return {"Authorization": f"Bearer {self.token}"}

openapi_python_client/templates/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.8"
17-
httpx = "^0.12.1"
17+
httpx = "^0.13.0"
1818

1919
[tool.black]
2020
line-length = 120

poetry.lock

Lines changed: 38 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ stringcase = "^1.2.0"
2222
typer = ">=0.1,<0.3"
2323
colorama = {version = "^0.4.3", markers = "sys_platform == 'win32'"}
2424
shellingham = "^1.3.2"
25-
httpx = "^0.12.1"
25+
httpx = "^0.13.0"
2626
black = "^19.10b0"
2727
isort = "^4.3.21"
2828
pyyaml = "^5.3.1"
@@ -33,13 +33,13 @@ openapi-python-client = "openapi_python_client.cli:app"
3333
[tool.poetry.dev-dependencies]
3434
pytest = "*"
3535
pytest-mock = "*"
36-
mypy = ">=0.761"
37-
taskipy = "^1.1.3"
38-
safety = "^1.9.0"
39-
pytest-cov = "^2.8.1"
40-
fastapi = "^0.54.1"
41-
uvicorn = "^0.11.5"
42-
python-multipart = "^0.0.5"
36+
mypy = "*"
37+
taskipy = "*"
38+
safety = "*"
39+
pytest-cov = "*"
40+
fastapi = "*"
41+
uvicorn = "*"
42+
python-multipart = "*"
4343

4444
[tool.taskipy.tasks]
4545
check = """

0 commit comments

Comments
 (0)