Skip to content

Commit 69f315e

Browse files
committed
Fix new lint errors
1 parent 3f75174 commit 69f315e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ lint.ignore = [
102102
"RUF012",
103103
"RUF005",
104104
"PGH004",
105+
"RUF022",
106+
"RUF023",
105107
"RUF100"
106108
]
107109

wcmatch/pathlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __new__(cls, *args: str, **kwargs: Any) -> 'Path':
187187
self._init()
188188
return self # type: ignore[no-any-return]
189189
else:
190-
if cls is WindowsPath and not win_host or cls is not WindowsPath and win_host:
190+
if (cls is WindowsPath and not win_host) or (cls is not WindowsPath and win_host):
191191
raise NotImplementedError(f"Cannot instantiate {cls.__name__!r} on your system")
192192
return object.__new__(cls)
193193

0 commit comments

Comments
 (0)