mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-12 19:36:39 +00:00
VSCode uses pylance/pyright, a performant type checker. So setup the builtins used by Deluge and set missing imports to informational due to OS-specific imports. It might be possible using extraPaths with extra stubs or use defineConstants to make pyright not check Windows or Macos conditional paths but that would require changing all usage so leaving for another time. Refs: https://github.com/microsoft/pyright/blob/main/docs/configuration.md Refs: https://github.com/microsoft/pyright/blob/main/docs/builtins.md
7 lines
123 B
Python
7 lines
123 B
Python
from twisted.web.http import Request
|
|
|
|
__request__: Request
|
|
|
|
def _(string: str) -> str: ...
|
|
def _n(string: str) -> str: ...
|