Skip to content

Commit 3c7d395

Browse files
committed
Bump httpx to 0.13.3. Update templates to use proper type annotations
1 parent 7447854 commit 3c7d395

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

end_to_end_tests/golden-master/my_test_api_client/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Client:
88

99
base_url: str
1010

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

end_to_end_tests/golden-master/pyproject.toml

+1-1
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.13.0"
17+
httpx = "^0.13.3"
1818

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

openapi_python_client/templates/client.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Client:
77

88
base_url: str
99

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

openapi_python_client/templates/pyproject.toml

+1-1
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.13.0"
17+
httpx = "^0.13.3"
1818

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

poetry.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)