mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-21 13:08:41 -04:00
Fixup synapse.api to pass mypy (#6733)
This commit is contained in:
parent
ceecedc68b
commit
0f6e525be3
6 changed files with 14 additions and 4 deletions
|
@ -15,6 +15,8 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from typing import List
|
||||
|
||||
from six import text_type
|
||||
|
||||
import jsonschema
|
||||
|
@ -293,7 +295,7 @@ class Filter(object):
|
|||
room_id = None
|
||||
ev_type = "m.presence"
|
||||
contains_url = False
|
||||
labels = []
|
||||
labels = [] # type: List[str]
|
||||
else:
|
||||
sender = event.get("sender", None)
|
||||
if not sender:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue