-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ParamSpec for DbusMethodAsync instead of masking it
Originally the DbusMethodAsync was masked under the original function meaning type checker treated it as it was the original function and not a DbusMethodAsync. However, it is planned to add new methods to the DbusMethodAsync so masking it is no longer an option. ParamSpec is only available since Python 3.10 so use the `typing_extensions` import hidden under TYPE_CHECKING if statement.
- Loading branch information
Showing
3 changed files
with
69 additions
and
27 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
72e9d52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably will have to be reverted because Jedi can't handle ParamSpec yet: davidhalter/jedi#1812
Maybe if there was somekind of
JEDI_CHECKING
variable I could mask the D-Bus method with original method.