Skip to content

Commit 861e81c

Browse files
chore(deps): update dependency flake8 to v7 (#35)
* chore(deps): update dependency flake8 to v7 * fix lint * dont run with 3.8.0 in CI because of Flake8 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Niklas Rosenstein <[email protected]>
1 parent 08d0e52 commit 861e81c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
matrix:
1616
# Generated with scripts/github_actions_get_python_versions.py
1717
python-version: [
18-
"3.8.0", "3.8.1", "3.8.2", "3.8.3", "3.8.4", "3.8.5", "3.8.6", "3.8.7", "3.8.8", "3.8.9", "3.8.10", "3.8.11",
18+
# NOTE: We do not check 3.8.0 because Flake8 does not run on it.
19+
"3.8.1", "3.8.2", "3.8.3", "3.8.4", "3.8.5", "3.8.6", "3.8.7", "3.8.8", "3.8.9", "3.8.10", "3.8.11",
1920
"3.8.12", "3.8.13", "3.8.14", "3.8.15", "3.8.16", "3.8.17", "3.8.18",
2021
"3.9.0", "3.9.1", "3.9.2", "3.9.3", "3.9.4", "3.9.5", "3.9.6", "3.9.7", "3.9.8", "3.9.9", "3.9.10", "3.9.11",
2122
"3.9.12", "3.9.13", "3.9.14", "3.9.15", "3.9.16", "3.9.17", "3.9.18",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mypy = "*"
3030
pytest = "*"
3131
types-dataclasses = "^0.6.5"
3232
isort = "^5.10.1"
33-
flake8 = "^5.0.4"
33+
flake8 = "^7.0.0"
3434
black = "^24.0.0"
3535
astor = "^0.8.1"
3636

src/typeapi/typehint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def source(self) -> "Any | None":
173173
return self._source
174174

175175
def __eq__(self, other: object) -> bool:
176-
if type(self) != type(other):
176+
if type(self) is not type(other):
177177
return False
178178
assert isinstance(other, TypeHint)
179179
return (self.hint, self.origin, self.args, self.parameters) == (

0 commit comments

Comments
 (0)