forked from qutebrowser/qutebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ah! I'm having flashbacks to last year. 1. pyqt5 has plural enum names = define conditional type variable 2. pyqt5 doesn't wrap all the nullable things in Optional = sneakily make the existing overload function signature conditional. There might be some other was to solve this, not sure. I know we have qtutils.add_optional() but in this case it's complaining that the signature doesn't match the parent. Narrowing or widening the type of the returned object doesn't affect the function signature. Possibly we could define our own type variable MaybeOptional...
- Loading branch information
Showing
1 changed file
with
20 additions
and
7 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