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
How would this feature be useful?
Currently, if you'd like to annotate nox callbacks, for e.g. type checking, code completion or docstring lookup, you have to import Session from nox.sessions:
On Thu, Sep 3, 2020 at 11:29 AM layday ***@***.***> wrote:
*How would this feature be useful?*
Currently, if you'd like to annotate nox callbacks, for e.g. type
checking, code completion or docstring lookup, you have to import Session
from nox.sessions:
import noxfrom nox.sessions import Session
@nox.sessiondef foo(session: Session):
...
Re-exporting Session in __init__ would 'jibe' with nox's global object
approach and would perhaps make typing in nox more accessible.
*Describe the solution you'd like*
For the Session class to be imported/re-exported in nox.__init__ so as to
not require a separate import.
*Describe alternatives you've considered*
Importing Session from nox.sessions, as above.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#343>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB5I47GEB7P5GHB3R6NUPTSD6Y5XANCNFSM4QU4267A>
.
How would this feature be useful?
Currently, if you'd like to annotate nox callbacks, for e.g. type checking, code completion or docstring lookup, you have to import
Session
fromnox.sessions
:Re-exporting
Session
in__init__
would 'jibe' with nox's global object approach and would perhaps make typing in nox more accessible.Describe the solution you'd like
For the
Session
class to be imported/re-exported innox.__init__
so as to not require a separate import.Describe alternatives you've considered
Importing
Session
fromnox.sessions
, as above.The text was updated successfully, but these errors were encountered: