Skip to content

Commit

Permalink
Merge pull request #23 from SnirShechter/patch-1
Browse files Browse the repository at this point in the history
Allow for cross-environment compatibility
  • Loading branch information
orsinium authored May 9, 2024
2 parents 9b3ae35 + 5212650 commit 2e65f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy_baseline/_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def category(self) -> str:
return self._match.group('category') or 'note'

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

0 comments on commit 2e65f49

Please sign in to comment.