class Server: (source)
Undocumented
Method | __init__ |
Initialize the server with the desired mypy flags. |
Method | check |
Check using fine-grained incremental mode. |
Method | cmd |
Check a list of files. |
Method | cmd |
Hang for 100 seconds, as a debug hack. |
Method | cmd |
Locate and inspect expression(s). |
Method | cmd |
Check the same list of files we checked most recently. |
Method | cmd |
Check a list of files, triggering a restart if needed. |
Method | cmd |
Return daemon status. |
Method | cmd |
Stop daemon. |
Method | cmd |
Suggest a signature for a function. |
Method | direct |
Return the direct imports of module not included in seen. |
Method | find |
Find suppressed modules that have been added (and not included in seen). |
Method | find |
Undocumented |
Method | find |
Follow imports within graph from given sources until hitting changed modules. |
Method | fine |
Perform a fine-grained type checking increment. |
Method | fine |
Like fine_grained_increment, but follow imports. |
Method | flush |
Undocumented |
Method | following |
Are we following imports? |
Method | increment |
Undocumented |
Method | initialize |
Undocumented |
Method | pretty |
Undocumented |
Method | run |
Run a specific command from the registry. |
Method | serve |
Serve requests, synchronously (no thread or fork). |
Method | update |
Undocumented |
Method | update |
Undocumented |
Method | update |
Undocumented |
Instance Variable | fine |
Undocumented |
Instance Variable | formatter |
Undocumented |
Instance Variable | fscache |
Undocumented |
Instance Variable | fswatcher |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | previous |
Undocumented |
Instance Variable | status |
Undocumented |
Instance Variable | timeout |
Undocumented |
Method | _find |
Undocumented |
Method | _response |
Undocumented |
list[ BuildSource]
, export_types: bool
, is_tty: bool
, terminal_width: int
) -> dict[ str, Any]
:
(source)
¶
Check using fine-grained incremental mode. If is_tty is True format the output nicely with colors and summary line (unless disabled in self.options). Also pass the terminal_width to formatter.
Sequence[ str]
, export_types: bool
, is_tty: bool
, terminal_width: int
) -> dict[ str, object]
:
(source)
¶
Check a list of files.
str
, location: str
, verbosity: int
= 0, limit: int
= 0, include_span: bool
= False, include_kind: bool
= False, include_object_attrs: bool
= False, union_attrs: bool
= False, force_reload: bool
= False) -> dict[ str, object]
:
(source)
¶
Locate and inspect expression(s).
bool
, terminal_width: int
, export_types: bool
, remove: list[ str]|None
= None, update: list[ str]|None
= None) -> dict[ str, object]
:
(source)
¶
Check the same list of files we checked most recently. If remove/update is given, they modify the previous list; if all are None, stat() is called for each file in the previous list.
str
, args: Sequence[ str]
, export_types: bool
, is_tty: bool
, terminal_width: int
) -> dict[ str, object]
:
(source)
¶
Check a list of files, triggering a restart if needed.
str
, callsites: bool
, **kwargs: Any
) -> dict[ str, object]
:
(source)
¶
Suggest a signature for a function.
tuple[ str, str]
, graph: mypy.build.Graph
) -> list[ BuildSource]
:
(source)
¶
Return the direct imports of module not included in seen.
mypy.build.Graph
, seen: set[ str]
, search_paths: SearchPaths
) -> list[ tuple[ str, str]]
:
(source)
¶
Find suppressed modules that have been added (and not included in seen). Args: seen: reachable modules we've seen before (mutated here!!) Return suppressed, added modules.
list[ BuildSource]
, graph: mypy.build.Graph
, seen: set[ str]
, changed_paths: AbstractSet[ str]
) -> tuple[ list[ tuple[ str, str]], list[ BuildSource]]
:
(source)
¶
Follow imports within graph from given sources until hitting changed modules. If we find a changed module, we can't continue following imports as the imports may have changed. Args: roots: modules where to start search from graph: module graph to use for the search seen: modules we've seen before that won't be visited (mutated here!!) changed_paths: which paths have changed (stop search here and return any found) Return (encountered reachable changed modules, unchanged files not in sources_set traversed).
list[ BuildSource]
, remove: list[ str]|None
= None, update: list[ str]|None
= None) -> list[ str]
:
(source)
¶
Perform a fine-grained type checking increment. If remove and update are None, determine changed paths by using fswatcher. Otherwise, assume that only these files have changes. Args: sources: sources passed on the command line remove: paths of files that have been removed update: paths of files that have been changed or created
list[ BuildSource]
) -> list[ str]
:
(source)
¶
Like fine_grained_increment, but follow imports.
list[ str]
, sources: list[ BuildSource]
, is_tty: bool
, terminal_width: int
) -> dict[ str, Any]
:
(source)
¶
Undocumented
list[ BuildSource]
, is_tty: bool
, terminal_width: int
) -> dict[ str, Any]
:
(source)
¶
Undocumented
list[ str]
, n_sources: int
, is_tty: bool
= False, terminal_width: int|None
= None) -> list[ str]
:
(source)
¶
Undocumented
list[ BuildSource]
, remove: list[ str]
, update: list[ str]
) -> ChangesAndRemovals
:
(source)
¶
Undocumented
list[ BuildSource]
, changed_paths: AbstractSet[ str]
) -> ChangesAndRemovals
:
(source)
¶
Undocumented