mgr/dashboard: cheroot now ships type hints

Now we need to prevent mypy frm complainign about a duplicated import.

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
This commit is contained in:
Sebastian Wagner 2022-01-04 14:56:12 +01:00
parent 9c659f228e
commit 2f05e5ebcd
No known key found for this signature in database
GPG Key ID: 8D2442807E6979F8
2 changed files with 1 additions and 4 deletions

View File

@ -56,9 +56,6 @@ ignore_missing_imports = True
[mypy-cherrypy.*]
ignore_missing_imports = True
[mypy-cheroot.*]
ignore_missing_imports = True
[mypy-bcrypt]
ignore_missing_imports = True

View File

@ -74,7 +74,7 @@ def patch_builtin_ssl_wrap(v, new_wrap):
if v < StrictVersion("9.0.0"):
from cherrypy.wsgiserver.ssl_builtin import BuiltinSSLAdapter as builtin_ssl
else:
from cheroot.ssl.builtin import BuiltinSSLAdapter as builtin_ssl
from cheroot.ssl.builtin import BuiltinSSLAdapter as builtin_ssl # type: ignore
builtin_ssl.wrap = new_wrap(builtin_ssl.wrap)