Server for mypy daemon mode. This implements a daemon process which keeps useful state in memory to enable fine-grained incremental reprocessing of changes.
Class |
|
No class docstring; 0/9 instance variable, 18/28 methods documented |
Function | daemonize |
Create the daemon process via "dmypy daemon" and pass options via command line |
Function | filter |
Quickly filter out obviously missing top-level packages. |
Function | find |
Undocumented |
Function | fix |
After an incremental update, update module dependencies to reflect the new state. |
Function | get |
Undocumented |
Function | ignore |
Can we skip looking for newly unsuppressed imports to module? |
Function | process |
Undocumented |
Constant | CONNECTION |
Undocumented |
Constant | MEM |
Undocumented |
Constant |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Options
, status_file: str
, timeout: int|None
= None, log_file: str|None
= None) -> int
:
(source)
¶
Create the daemon process via "dmypy daemon" and pass options via command line When creating the daemon grandchild, we create it in a new console, which is started hidden. We cannot use DETACHED_PROCESS since it will cause console windows to pop up when starting. See https://github.com/python/cpython/pull/4150#issuecomment-340215696 for more on why we can't have nice things. It also pickles the options to be unpickled by mypy.
set[ str]
, search_paths: SearchPaths
, fscache: FileSystemCache
) -> set[ str]
:
(source)
¶
Quickly filter out obviously missing top-level packages. Return packages with entries that can't be found removed. This is approximate: some packages that aren't actually valid may be included. However, all potentially valid packages must be returned.
mypy.build.Graph
, extra: Sequence[ BuildSource]
= ()) -> list[ BuildSource]
:
(source)
¶
Undocumented
After an incremental update, update module dependencies to reflect the new state. This can make some suppressed dependencies non-suppressed, and vice versa (if modules have been added to or removed from the build).