You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The __init__ method of the Context class incorrectly updates kwargs with the result of kwargs.update(arg.to_dict()), which returns None. This means that calls to Context containing another Context object, will fail.
Steps to Reproduce
Go to 'context.py'
Locate the __init__ method of the Context class
Observe the line kwargs = kwargs.update(arg.to_dict())
See the error
Expected behavior
The kwargs should be updated correctly without assigning the result of kwargs.update(arg.to_dict()) to kwargs.
The text was updated successfully, but these errors were encountered:
Describe the bug
The
__init__
method of theContext
class incorrectly updateskwargs
with the result ofkwargs.update(arg.to_dict())
, which returnsNone
. This means that calls toContext
containing anotherContext
object, will fail.Steps to Reproduce
__init__
method of theContext
classkwargs = kwargs.update(arg.to_dict())
Expected behavior
The
kwargs
should be updated correctly without assigning the result ofkwargs.update(arg.to_dict())
tokwargs
.The text was updated successfully, but these errors were encountered: