Skip to content

Commit ffe68f4

Browse files
committed
lint
1 parent d83ffd8 commit ffe68f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ninja/signature/details.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def is_pydantic_model(cls: Any) -> bool:
289289
if get_origin(cls) in UNION_TYPES:
290290
return any(issubclass(arg, pydantic.BaseModel) for arg in get_args(cls))
291291
return issubclass(cls, pydantic.BaseModel)
292-
except TypeError:
292+
except TypeError: # pragma: no cover
293293
return False
294294

295295

ninja/signature/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_args_names(func: Callable[..., Any]) -> List[str]:
7575
class UUIDStrConverter(UUIDConverter):
7676
"""Return a path converted UUID as a str instead of the standard UUID"""
7777

78-
def to_python(self, value: str) -> str:
78+
def to_python(self, value: str) -> str: # type: ignore
7979
return value # return string value instead of UUID
8080

8181

0 commit comments

Comments
 (0)