Commit 56e51bd
authored
Correct typing of create_client(host, username) (#482)
The parameters `host` and `username` of `create_client` actually do
accept None values, as demonstrated by their default values being `None`
and the docstring explaining default behavior when not-set.
Correcting these types (by marking as Optional) allows users using `dsn`
or default behavior to not see type-checking errors.1 parent ca45ff6 commit 56e51bd
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments