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
Composite.context can be implemented slimmer/simpler using contextlib.contextmanager.
Furthermore, instead of calling Composite.context, the same functionality could be implemented as Composite.__call__, as the context is the main functionality, and this would remove a little bit of overhead, although .context may be more descriptive.
The text was updated successfully, but these errors were encountered:
Composite.context
can be implemented slimmer/simpler usingcontextlib.contextmanager
.Furthermore, instead of calling
Composite.context
, the same functionality could be implemented asComposite.__call__
, as the context is the main functionality, and this would remove a little bit of overhead, although.context
may be more descriptive.The text was updated successfully, but these errors were encountered: