File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def _type_check(session: Session, files: Iterable[str]) -> None:
3939 )
4040
4141
42- def _import_lint (session : Session , path : str ) -> None :
42+ def _import_lint (session : Session , path : Path ) -> None :
4343 session .run (
4444 "poetry" ,
4545 "run" ,
@@ -84,10 +84,11 @@ def import_lint(session: Session) -> None:
8484 args : argparse .Namespace = parser .parse_args (args = session .posargs )
8585 file : str = args .config
8686 print (f"-{ file } -" )
87+ path : Path
8788 if file is None :
88- path : path = getattr (PROJECT_CONFIG , "importlinter" , Path (".importlinter" ))
89+ path = getattr (PROJECT_CONFIG , "importlinter" , Path (".importlinter" ))
8990 else :
90- path : path = Path (file )
91+ path = Path (file )
9192 if path .exists ():
9293 _import_lint (session = session , path = path )
9394 else :
You can’t perform that action at this time.
0 commit comments