Skip to content

Commit 2e65f49

Browse files
authored
Merge pull request #23 from SnirShechter/patch-1
Allow for cross-environment compatibility
2 parents 9b3ae35 + 5212650 commit 2e65f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy_baseline/_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def category(self) -> str:
8080
return self._match.group('category') or 'note'
8181

8282
def get_clean_line(self, config: Config) -> str:
83-
path = Path(*self.path.parts[:config.depth])
83+
path = str(Path(*self.path.parts[:config.depth])).replace('\\', '/')
8484
pos = self.line_number if config.preserve_position else 0
8585
msg = REX_COLOR.sub('', self.message).strip()
8686
msg = REX_COLOR_NBQA.sub('', msg).strip()

0 commit comments

Comments
 (0)