Skip to content

Commit

Permalink
Merge branch 'feature/v0.4.3' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Apr 29, 2023
2 parents 0a46649 + 0df9c03 commit 7aaad32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions colour/utilities/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ class ModuleAPI:
... # doctest: +SKIP
"""

def __init__(self, module: ModuleType, changes: dict | None = None):
def __init__(
self, module: ModuleType, changes: dict | None = None
) -> None:
self._module = module
self._changes = optional(changes, {})

Expand Down Expand Up @@ -360,7 +362,6 @@ def __getattr__(self, attribute: str) -> Any:

if change is not None:
if not isinstance(change, ObjectRemoved):

usage_warning(str(change))

return (
Expand Down Expand Up @@ -564,7 +565,6 @@ def handle_arguments_deprecation(changes: dict, **kwargs: Any) -> dict:
continue

if not isinstance(change, ArgumentRemoved):

usage_warning(str(change))

if isinstance(change, ArgumentFutureRemove):
Expand Down

0 comments on commit 7aaad32

Please sign in to comment.