Skip to content

Commit

Permalink
use "noinspection PyUnresolvedReferences" to prevent imports from bei…
Browse files Browse the repository at this point in the history
…ng marked as unused

Signed-off-by: flashdagger <flashdagger@googlemail.com>
  • Loading branch information
flashdagger committed Mar 18, 2024
1 parent 1d369d7 commit c95f99b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions zammadoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

__version__ = "0.3.0.dev0"

from .client import LOG, APIException
from .client import Client as Client # pylint: disable=useless-import-alias
from .client import LOG, APIException, Client

LOG.name = __name__
_ = APIException, Client # make pyflakes happy
3 changes: 2 additions & 1 deletion zammadoo/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@

if TYPE_CHECKING:
from .client import Client

# noinspection PyUnresolvedReferences
from .resource import Resource
from .utils import JsonDict, JsonDictList

_ = Resource # make PyCharm happy

_T_co = TypeVar("_T_co", bound="Resource", covariant=True)

Expand Down
2 changes: 1 addition & 1 deletion zammadoo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
)

if TYPE_CHECKING:
# noinspection PyUnresolvedReferences
from os import PathLike

from typing_extensions import TypeAlias

LinkType: TypeAlias = Literal["normal", "parent", "child"]
_ = PathLike
else:
LinkType = Literal["normal", "parent", "child"]

Expand Down

0 comments on commit c95f99b

Please sign in to comment.