File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -540,11 +540,13 @@ def __init__(
540
540
self .msgs_store = MessageDefinitionStore ()
541
541
self ._checkers = collections .defaultdict (list )
542
542
self ._pragma_lineno = {}
543
- self . _ignore_file = False
544
- # visit variables
543
+
544
+ # Attributes related to visiting files
545
545
self .file_state = FileState ()
546
546
self .current_name : Optional [str ] = None
547
- self .current_file = None
547
+ self .current_file : Optional [str ] = None
548
+ self ._ignore_file = False
549
+
548
550
self .stats = LinterStats ()
549
551
self .fail_on_symbols = []
550
552
# init options
@@ -1491,7 +1493,7 @@ def _add_one_message(
1491
1493
message_definition .msgid ,
1492
1494
message_definition .symbol ,
1493
1495
MessageLocationTuple (
1494
- abspath ,
1496
+ abspath or "" ,
1495
1497
path ,
1496
1498
module or "" ,
1497
1499
obj ,
You can’t perform that action at this time.
0 commit comments