Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
7d3299d6e655
Commit
a79a37a7
authored
Dec 19, 2019
by
Laurent Peuch
Browse files
[mypy] type Hook.events
parent
b1ef9690f357
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/server/hook.py
View file @
7d3299d6
...
...
@@ -248,6 +248,7 @@ Hooks and operations classes
from
logging
import
getLogger
from
itertools
import
chain
from
typing
import
Union
,
Tuple
from
logilab.common.decorators
import
classproperty
,
cached
from
logilab.common.logging_ext
import
set_log_methods
...
...
@@ -521,8 +522,8 @@ class Hook(AppObject):
"""
__select__
=
enabled_category
()
# set this in derivated classes
events
=
None
category
=
None
events
:
Union
[
None
,
Tuple
[
str
],
Tuple
[
str
,
str
]]
=
None
order
=
0
# stop pylint from complaining about missing attributes in Hooks classes
eidfrom
=
eidto
=
entity
=
rtype
=
repo
=
None
...
...
Write
Preview
Supports
Markdown
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