Skip to content

Commit ec773b2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a267bb8 commit ec773b2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mypy/semanal.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6413,24 +6413,24 @@ def lookup_fully_qualified_or_none(self, fullname: str) -> SymbolTableNode | Non
64136413
names = []
64146414

64156415
while splitted_modules and ".".join(splitted_modules) not in self.modules:
6416-
'''
6416+
"""
64176417
Try to find the module in the modules dictionary.
64186418
64196419
If the module is not found, pop the last element of the splitted list and append it to the names list.
64206420
64216421
This is to find the longest prefix of the module name that is in the modules dictionary.
6422-
'''
6422+
"""
64236423
names.append(splitted_modules.pop())
64246424

64256425
if not splitted_modules or not names:
6426-
'''
6426+
"""
64276427
If no module or name is found, return None.
6428-
'''
6428+
"""
64296429
return None
64306430

6431-
'''
6431+
"""
64326432
Reverse the names list to get the correct order of names.
6433-
'''
6433+
"""
64346434
names.reverse()
64356435

64366436
module = ".".join(splitted_modules)

0 commit comments

Comments
 (0)