mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-26 03:28:17 +00:00
Pacify mypy when running with newer Python
This commit is contained in:
parent
d28444c2ba
commit
457b4895b5
@ -4,11 +4,10 @@ Ported to Python 3.
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from six import ensure_str
|
from six import ensure_str
|
||||||
try:
|
import sys
|
||||||
|
if sys.version_info[:2] >= (3, 9):
|
||||||
from importlib.resources import files as resource_files, as_file
|
from importlib.resources import files as resource_files, as_file
|
||||||
except ImportError:
|
else:
|
||||||
import sys
|
|
||||||
assert sys.version_info[:2] < (3, 9)
|
|
||||||
from importlib_resources import files as resource_files, as_file
|
from importlib_resources import files as resource_files, as_file
|
||||||
from contextlib import ExitStack
|
from contextlib import ExitStack
|
||||||
import weakref
|
import weakref
|
||||||
|
Loading…
x
Reference in New Issue
Block a user