-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👌 IMPROVE: Add typing to QueryBuilder (#5063)
This commit principally adds typing to `aiida/orm/querybuilder.py`, and does a small bit of refactoring: 1. Make the `__init__` and `append` constructor variables more explicit, as opposed to relying on `**kwargs` which obfuscates the allowed inputs for the user 2. Removes legacy `self._aliased_path` variable, whose use in relation to the `direction` joining keyword was actually removed in v0.8 (now `direction` is converted to `with_outgoing` or `with_incoming` before storage, and similarly its value is converted from an int to a tag string) 3. Removal of `autotag=True` from `.append` calls; another legacy bit of code 4. Changes debug printing to use the `QueryBuilder.debug` method, so that it is easier to centrally control debug logging behaviour
- Loading branch information
1 parent
79d2d27
commit b826ae2
Showing
5 changed files
with
264 additions
and
311 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.