Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
adbf272e
Commit
adbf272e
authored
Jan 01, 2022
by
Philipp Hörist
Browse files
Discovery: Add type annotations
parent
a4d0ad81
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/modules/discovery.py
View file @
adbf272e
...
...
@@ -15,6 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
annotations
from
typing
import
Any
from
typing
import
Optional
import
time
import
logging
...
...
@@ -78,7 +83,8 @@ class Discovery(BaseModule):
def
parse_disco_info
(
stanza
,
timestamp
=
None
):
def
parse_disco_info
(
stanza
:
Any
,
timestamp
:
Optional
[
float
]
=
None
)
->
DiscoInfo
:
idenities
=
[]
features
=
[]
dataforms
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment