Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and unkcpz committed Nov 15, 2024
1 parent 1b26044 commit 30bae8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/aiida/common/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def isidentifier(identifier):
return identifier.isidentifier() and not keyword.iskeyword(identifier)


def type_check(
what: object, of_type, msg: str | None = None, allow_none: bool = False
) -> object | None:
def type_check(what: Any, of_type, msg: str | None = None, allow_none: bool = False) -> Any | None:
"""Verify that object 'what' is of type 'of_type' and if not the case, raise a TypeError.
:param what: the object to check
Expand Down
2 changes: 1 addition & 1 deletion src/aiida/manage/configuration/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import pathlib
from collections import abc
from copy import deepcopy
from typing import TYPE_CHECKING, Any, Literal, cast
from typing import TYPE_CHECKING, Any, cast

from aiida.common import exceptions
from aiida.common.lang import type_check
Expand Down

0 comments on commit 30bae8b

Please sign in to comment.