Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mesonium
gajim
Commits
2ea5e3a1
Commit
2ea5e3a1
authored
4 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Annotate variable
parent
de23508c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/common/app.py
+2
-1
2 additions, 1 deletion
gajim/common/app.py
gajim/common/types.py
+2
-0
2 additions, 0 deletions
gajim/common/types.py
with
4 additions
and
1 deletion
gajim/common/app.py
+
2
−
1
View file @
2ea5e3a1
...
...
@@ -51,6 +51,7 @@
from
gajim.common.types
import
InterfaceT
# pylint: disable=unused-import
from
gajim.common.types
import
LoggerT
# pylint: disable=unused-import
from
gajim.common.types
import
ConnectionT
# pylint: disable=unused-import
from
gajim.common.types
import
LegacyContactsAPIT
# pylint: disable=unused-import
interface
=
cast
(
InterfaceT
,
None
)
thread_interface
=
lambda
*
args
:
None
# Interface to run a thread and then a callback
...
...
@@ -78,7 +79,7 @@
# {acct1: {jid1: time1, jid2: time2}, }
last_message_time
=
{}
# type: Dict[str, Dict[str, float]]
contacts
=
None
contacts
=
cast
(
LegacyContactsAPIT
,
None
)
# tell if we are connected to the room or not
# {acct: {room_jid: True}}
...
...
This diff is collapsed.
Click to expand it.
gajim/common/types.py
+
2
−
0
View file @
2ea5e3a1
...
...
@@ -32,6 +32,7 @@
from
gajim.common.zeroconf.connection_zeroconf
import
ConnectionZeroconf
from
gajim.common.contacts
import
Contact
from
gajim.common.contacts
import
GC_Contact
from
gajim.common.contacts
import
LegacyContactsAPI
from
gajim.common.nec
import
NetworkEvent
from
gajim.common.nec
import
NetworkEventsController
from
gajim.common.logger
import
Logger
...
...
@@ -46,6 +47,7 @@
ConnectionT
=
Union
[
'
Client
'
,
'
ConnectionZeroconf
'
]
ContactsT
=
Union
[
'
Contact
'
,
'
GC_Contact
'
]
ContactT
=
Union
[
'
Contact
'
]
LegacyContactsAPIT
=
Union
[
'
LegacyContactsAPI
'
]
# PEP
PEPNotifyCallback
=
Callable
[[
nbxmpp
.
JID
,
nbxmpp
.
Node
],
None
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment