{{ message }}
Repository navigation
Errors in IDE or Linter Autocompletion and Type Checking #678
mgunawardhana
started this conversation in
General
Replies: 3 comments
|
Hello and thank you for your interest in Crawlee! I'm afraid this issue is not exactly actionable in this state. Could you provide an example of such error and which IDE it appears in? |
0 replies
# module_a.py
from __future__ import annotations
class ClassA:
def method_a(self) -> ClassB:
pass# module_b.py
from __future__ import annotations
from module_a import ClassA
class ClassB:
def method_b(self) -> ClassA:
passIn this setup, if your IDE (say, VS Code or PyCharm) or linter does not fully support deferred annotations, it may not recognize ClassB in method_a or ClassA in method_b as valid references. This can lead to false positive warnings like "Cannot find reference" or missing autocomplete options when trying to use ClassB or ClassA. |
0 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Some IDEs or linters may not fully support deferred annotations, which can result in incorrect autocompletion or type-checking errors during development. This may hinder productivity, as IDEs might not recognize certain types in complex projects where multiple modules interlink, leading to a lack of suggestions or false positive warnings.
path to file -
src/crawlee/memory_storage_client/_creation_management.pyAll reactions