Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mepland committed Nov 11, 2023
1 parent de382f6 commit 37ba684
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/TSModelWrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,9 @@ def __init__(self: "NBEATSModelWrapper", **kwargs: Any) -> None: # noqa: ANN401
# but they do not work if the kwargs["TSModelWrapper"] parent instance was updated between child __init__ calls
if (
"TSModelWrapper" in kwargs
and type(kwargs["TSModelWrapper"].__class__) # pylint: disable=unidiomatic-typecheck
and type( # noqa: E721 # pylint: disable=unidiomatic-typecheck
kwargs["TSModelWrapper"].__class__
)
== type(TSModelWrapper) # <class 'type'>
and str(kwargs["TSModelWrapper"].__class__)
== str(TSModelWrapper) # <class 'utils.TSModelWrappers.TSModelWrapper'>
Expand Down

0 comments on commit 37ba684

Please sign in to comment.