Skip to content

Commit 8241832

Browse files
committed
ci: Lint
1 parent 178c757 commit 8241832

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/griffe2md/_internal/rendering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import sys
99
from functools import lru_cache, partial
1010
from re import Pattern
11-
from typing import TYPE_CHECKING, Any, Callable
11+
from typing import TYPE_CHECKING, Any
1212

1313
from griffe import (
1414
AliasResolutionError,
@@ -25,7 +25,7 @@
2525
from jinja2 import pass_context
2626

2727
if TYPE_CHECKING:
28-
from collections.abc import Sequence
28+
from collections.abc import Callable, Sequence
2929

3030
from griffe import Alias, Attribute, Class, Function, Module, Object
3131
from jinja2.runtime import Context
@@ -397,7 +397,7 @@ def from_private_package(obj: Object | Alias) -> bool:
397397
if not obj.is_alias:
398398
return False
399399
try:
400-
return obj.target.package.name == f"_{obj.parent.package.name}" # ty: ignore[possibly-missing-attribute]
400+
return obj.target.package.name == f"_{obj.parent.package.name}" # ty: ignore[unresolved-attribute]
401401
except (AliasResolutionError, CyclicAliasError):
402402
return False
403403

0 commit comments

Comments
 (0)