-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Guard all imports in `robot.model.visitor` with `if TYPE_CHECKING` to avoid cyclic imports with modules needing to import `SuiteVisitor`. - Modules anyway needing `if TYPE_CHECKING`, and only using `SuiteVisitor` for typing, still import it conditionally. We may consider using `if TYPE_CHECKING` with all imports needed only typing purposes. - `dict[str, Any]` typing wtih `to_dict`. Also with `data` used internally to avoid errors with VScode. - Use `from .mod import X` insted of `from robot.mod import X` style in imports consisently. `visitor` is an exception because importing everything from `robot.model` in one go is just too convenient.
- Loading branch information
1 parent
2a57c47
commit 30ebdb6
Showing
4 changed files
with
60 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.