Repository navigation
Commit 50cc323
authored
chore(deps): upgrade mypy and pytest with Python 3.9 version markers (#325)
* chore(deps): upgrade mypy and pytest with Python 3.9 version markers
Upgrade deps per dependabot PRs:
- mypy: 1.19.* for Python 3.9, 2.1.* for Python >=3.10
- pytest: 8.4.* for Python 3.9, 9.1.* for Python >=3.10
mypy 2.x and pytest 9.x both dropped Python 3.9 support. Use
environment markers so Python 3.9 CI stays on the last compatible
versions while 3.10+ gets the latest.
Also remove python_version = 3.9 from [tool.mypy] so mypy infers the
target from the running Python — required because mypy 2.x dropped
support for targeting 3.9.
Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com>
* fix(test): add None check for logger.extra to satisfy mypy 2.x
mypy 2.x is stricter about Mapping | None — add an explicit assertion
before accessing session._logger.extra.
Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com>
---------
Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com>1 parent 06c30f1 commit 50cc323
3 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
0 commit comments