We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610fa1a commit fb7e1b1Copy full SHA for fb7e1b1
pymc/model/core.py
@@ -209,7 +209,7 @@ def __init_subclass__(cls, **kwargs):
209
def __call__(cls, *args, **kwargs):
210
# We type hint Model here so type checkers understand that Model is a context manager.
211
# This metaclass is only used for Model, so this is safe to do. See #6809 for more info.
212
- instance: "Model" = cls.__new__(cls, *args, **kwargs)
+ instance: Model = cls.__new__(cls, *args, **kwargs)
213
with instance: # appends context
214
instance.__init__(*args, **kwargs)
215
return instance
0 commit comments