Skip to content

Commit

Permalink
Minor cleanups in type stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Feb 2, 2021
1 parent 7b7e6d4 commit bfb4dae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/nox_poetry/session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import nox.virtualenv

from nox_poetry.poetry import DistributionFormat

Python = Optional[Union[str, Sequence[str], bool]]

class Session:
_session: nox.Session
def __init__(self, session: nox.Session) -> None: ...
Expand All @@ -35,7 +37,7 @@ class Session:
@property
def virtualenv(self) -> nox.virtualenv.ProcessEnv: ...
@property
def python(self) -> Optional[Union[str, Sequence[str], bool]]: ...
def python(self) -> Python: ...
@property
def bin_paths(self) -> Optional[List[str]]: ...
@property
Expand All @@ -52,14 +54,13 @@ class Session:
self, *args: str, env: Optional[Mapping[str, str]] = ..., **kwargs: Any
) -> Optional[Any]: ...
def conda_install(
self, *args: str, auto_offline: bool = True, **kwargs: Any
self, *args: str, auto_offline: bool = ..., **kwargs: Any
) -> None: ...
def notify(self, target: Union[str, nox.sessions.SessionRunner]) -> None: ...
def log(self, *args: Any, **kwargs: Any) -> None: ...
def error(self, *args: Any) -> NoReturn: ...
def skip(self, *args: Any) -> NoReturn: ...

Python = Optional[Union[str, Sequence[str], bool]]
SessionFunction = Callable[[Session], None]
NoxSessionFunction = Callable[[nox.Session], None]
SessionDecorator = Callable[[SessionFunction], NoxSessionFunction]
Expand Down

0 comments on commit bfb4dae

Please sign in to comment.