Framework for Python

Notebooks & Scripts

stubs_path()

Where stubs are read from: the project's stubs/ folder or Framework's.

"auto" gives the project folder when it exists.

Usage

stubs_path(which: Literal['auto', 'user', 'framework'] = 'auto') -> Path

Arguments

Name Type Default Description
which Literal['auto', 'user', 'framework'] 'auto'

One of "auto", "user", or "framework". "user" gives the project's stubs/ folder even when it does not exist. Default: "auto".

Value

The stubs folder.

Raises

  • ValueError: When which is not allowed.