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 |
Check a list of files. |
Method | cmd_hang |
Hang for 100 seconds, as a debug hack. |
Method | cmd_recheck |
Check the same list of files we checked most recently. |
Method | cmd_run |
Check a list of files, triggering a restart if needed. |
Method | cmd_status |
Return daemon status. |
Method | cmd_stop |
Stop daemon. |
Method | cmd_suggest |
Suggest a signature for a function. |
Method | direct_imports |
Return the direct imports of module not included in seen. |
Method | find_added_suppressed |
Find suppressed modules that have been added (and not included in seen). |
Method | find_changed |
Undocumented |
Method | find_reachable_changed_modules |
Follow imports within graph from given sources until hitting changed modules. |
Method | fine_grained_increment |
Perform a fine-grained type checking increment. |
Method | fine_grained_increment_follow_imports |
Like fine_grained_increment, but follow imports. |
Method | flush_caches |
Undocumented |
Method | following_imports |
Are we following imports? |
Method | increment_output |
Undocumented |
Method | initialize_fine_grained |
Undocumented |
Method | pretty_messages |
Undocumented |
Method | run_command |
Run a specific command from the registry. |
Method | serve |
Serve requests, synchronously (no thread or fork). |
Method | update_changed |
Undocumented |
Method | update_sources |
Undocumented |
Method | update_stats |
Undocumented |
Instance Variable | fine_grained_manager |
Undocumented |
Instance Variable | formatter |
Undocumented |
Instance Variable | fscache |
Undocumented |
Instance Variable | fswatcher |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | options_snapshot |
Undocumented |
Instance Variable | previous_sources |
Undocumented |
Instance Variable | status_file |
Undocumented |
Instance Variable | timeout |
Undocumented |
Method | _find_changed |
Undocumented |
Method | _response_metadata |
Undocumented |
Parameters | |
options:Options | Undocumented |
status_file:str | Undocumented |
timeout:Optional[ | Undocumented |
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.
Parameters | |
sources:List[ | Undocumented |
is_tty:bool | Undocumented |
terminal_width:int | Undocumented |
Returns | |
Dict[ | Undocumented |
Parameters | |
files:Sequence[ | Undocumented |
is_tty:bool | Undocumented |
terminal_width:int | Undocumented |
Returns | |
Dict[ | Undocumented |
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.
Parameters | |
is_tty:bool | Undocumented |
terminal_width:int | Undocumented |
remove:Optional[ | Undocumented |
update:Optional[ | Undocumented |
Returns | |
Dict[ | Undocumented |
Parameters | |
version:str | Undocumented |
args:Sequence[ | Undocumented |
is_tty:bool | Undocumented |
terminal_width:int | Undocumented |
Returns | |
Dict[ | Undocumented |
Parameters | |
fswatcher_dump_file:Optional[ | Undocumented |
Returns | |
Dict[ | Undocumented |
Parameters | |
function:str | Undocumented |
callsites:bool | Undocumented |
**kwargs:Any | Undocumented |
Returns | |
Dict[ | Undocumented |
Parameters | |
module:Tuple[ | Undocumented |
graph:mypy.build.Graph | Undocumented |
Returns | |
List[ | Undocumented |
Find suppressed modules that have been added (and not included in seen).
Return suppressed, added modules.
Parameters | |
graph:mypy.build.Graph | Undocumented |
seen:Set[ | Undocumented |
search_paths:SearchPaths | Undocumented |
Returns | |
List[ | Undocumented |
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.
Parameters | |
roots:List[ | Undocumented |
graph:mypy.build.Graph | Undocumented |
seen:Set[ | Undocumented |
changed_paths:AbstractSet[ | Undocumented |
Returns | |
Tuple[ | Undocumented |
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.
Parameters | |
sources:List[ | Undocumented |
remove:Optional[ | Undocumented |
update:Optional[ | Undocumented |
Returns | |
List[ | Undocumented |
Parameters | |
sources:List[ | Undocumented |
Returns | |
List[ | Undocumented |
Undocumented
Parameters | |
messages:List[ | Undocumented |
sources:List[ | Undocumented |
is_tty:bool | Undocumented |
terminal_width:int | Undocumented |
Returns | |
Dict[ | Undocumented |
Undocumented
Parameters | |
sources:List[ | Undocumented |
is_tty:bool | Undocumented |
terminal_width:int | Undocumented |
Returns | |
Dict[ | Undocumented |
Undocumented
Parameters | |
messages:List[ | Undocumented |
n_sources:int | Undocumented |
is_tty:bool | Undocumented |
terminal_width:Optional[ | Undocumented |
Returns | |
List[ | Undocumented |
Parameters | |
command:str | Undocumented |
data:Dict[ | Undocumented |
Returns | |
Dict[ | Undocumented |
Undocumented
Parameters | |
sources:List[ | Undocumented |
remove:List[ | Undocumented |
update:List[ | Undocumented |
Returns | |
ChangesAndRemovals | Undocumented |
Undocumented
Parameters | |
sources:List[ | Undocumented |
changed_paths:AbstractSet[ | Undocumented |
Returns | |
ChangesAndRemovals | Undocumented |