forked from p15670423/monkey
Island: Fix mypy issues in app.py
This commit is contained in:
parent
795d9fe201
commit
6209ec47cd
|
@ -2,7 +2,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Iterable, Type
|
from typing import Iterable, Set, Type
|
||||||
|
|
||||||
import flask_restful
|
import flask_restful
|
||||||
from flask import Flask, Response, send_from_directory
|
from flask import Flask, Response, send_from_directory
|
||||||
|
@ -120,7 +120,7 @@ class FlaskDIWrapper:
|
||||||
def __init__(self, api: flask_restful.Api, container: DIContainer):
|
def __init__(self, api: flask_restful.Api, container: DIContainer):
|
||||||
self._api = api
|
self._api = api
|
||||||
self._container = container
|
self._container = container
|
||||||
self._reserved_urls = set()
|
self._reserved_urls: Set[str] = set()
|
||||||
|
|
||||||
def add_resource(self, resource: Type[AbstractResource]):
|
def add_resource(self, resource: Type[AbstractResource]):
|
||||||
if len(resource.urls) == 0:
|
if len(resource.urls) == 0:
|
||||||
|
|
Loading…
Reference in New Issue