File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3232 python-version : " 3.10"
3333 # flake8 not in requirements-dev.txt, because versions specified in setup.py are complicated
3434 - run : pip install -e .
35+ - run : pip install -r requirements-dev.txt
3536 - run : |
3637 flake8 $(git ls-files | grep 'py$')
3738 tests :
Original file line number Diff line number Diff line change @@ -362,8 +362,8 @@ def active(self) -> bool:
362362
363363
364364class PyiVisitor (ast .NodeVisitor ):
365- def __init__ (self , filename : Path = Path ( "none" ) ) -> None :
366- self .filename = filename
365+ def __init__ (self , filename : Path | None = None ) -> None :
366+ self .filename = Path ( "(none)" ) if filename is None else filename
367367 self .errors : list [Error ] = []
368368 # Mapping of all private TypeVars/ParamSpecs/TypeVarTuples to the nodes where they're defined
369369 self .typevarlike_defs : dict [TypeVarInfo , ast .Assign ] = {}
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ black==22.1.0
22pytest == 6.2.5
33mypy == 0.931
44isort == 5.10.1
5+ flake8-bugbear == 22.1.11
You can’t perform that action at this time.
0 commit comments