Skip to content

Commit 3cdc675

Browse files
authored
Fix CI: add typecheck suppression & upgrade flake8-pyi (#303)
* Added suppression for a new test in upstream * Upgraded flake8-pyi to be compatible with flake8 v6:
1 parent bedac07 commit 3cdc675

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
hooks:
2929
- id: flake8
3030
additional_dependencies:
31-
- flake8-pyi==22.10.0
31+
- flake8-pyi==22.11.0
3232
types: []
3333
files: ^.*.pyi?$
3434
- repo: local

scripts/typecheck_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@
8383
"browsable_api": [
8484
'expression has type "List[Dict[str, Dict[str, int]]]"',
8585
],
86-
"models.py": ['"ForeignKeyTarget" has no attribute "sources"'],
86+
"models.py": [
87+
'"ForeignKeyTarget" has no attribute "sources"',
88+
'"CustomManager" not callable',
89+
],
8790
"serializers.pyi": [
8891
'note: "IntegerSerializer" defined here',
8992
],

0 commit comments

Comments
 (0)