mirror of
https://github.com/ceph/ceph
synced 2025-01-12 14:10:27 +00:00
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:
parent
9c659f228e
commit
2f05e5ebcd
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user