-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type cleanups and refactoring #3930
Labels
enhancement
New feature or request
Comments
This seems also to be a problem for
|
totaam
added a commit
that referenced
this issue
Jul 24, 2023
we have to import from 'typing_extensions' and add the package dependency..
totaam
added a commit
that referenced
this issue
Jul 24, 2023
Oops! Yes, 20.04 ... :-| |
totaam
added a commit
that referenced
this issue
Jul 27, 2023
totaam
added a commit
that referenced
this issue
Jul 27, 2023
With the switch to Python 3.10+, we can also take advantage of:
|
totaam
added a commit
that referenced
this issue
Jul 28, 2023
totaam
added a commit
that referenced
this issue
Jul 28, 2023
totaam
added a commit
that referenced
this issue
Jul 28, 2023
totaam
added a commit
that referenced
this issue
Jul 28, 2023
totaam
added a commit
that referenced
this issue
Jul 28, 2023
totaam
added a commit
that referenced
this issue
Jul 29, 2023
Remaining items that might be of interest:
|
totaam
added a commit
that referenced
this issue
Jul 30, 2023
totaam
added a commit
that referenced
this issue
Jul 30, 2023
totaam
added a commit
that referenced
this issue
Sep 1, 2023
totaam
added a commit
that referenced
this issue
Sep 2, 2023
totaam
added a commit
that referenced
this issue
Sep 2, 2023
totaam
added a commit
that referenced
this issue
Sep 2, 2023
totaam
added a commit
that referenced
this issue
Sep 2, 2023
totaam
added a commit
that referenced
this issue
Sep 2, 2023
totaam
added a commit
that referenced
this issue
Sep 3, 2023
totaam
added a commit
that referenced
this issue
Sep 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mostly flagged by #3927, related to #3592.
A lot of the types from the
typing
module are now deprecated, see PEP 585:https://docs.python.org/3/library/typing.html#typing.Tuple
This requires Python 3.9 (not a big problem for v6?)
get_info
server method signature mess:xpra/x11/server.py:916: error: Cannot determine type of "wid" [has-type]
Could this be introspected and changed to a positional packet function with default args?
xpra/client/gui/client_window_base.py:414: error: "ClientWindowBase" has no attribute "set_modal" [attr-defined]
xpra/server/mixins/audio.py:216: error: "AudioServer" has no attribute "add_process" [attr-defined]
SocketProtocol
missing attributes:authenticators
,encryption
, ..XpraConfig
class does not have any "real" attributes: convert to introspected hints?_id_to_window
,readonly
,ui_driver
and friendsReturn a value of type "tuple[bool, bool]" instead of "NoneType" or update function "accept_data" type hint
brain-overload
: 164 functions have a cognitive complexity above 30 in sonarqubeFIXME
s and 38TODO
setc
The text was updated successfully, but these errors were encountered: