mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-25 19:21:36 +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 six import ensure_str
|
||||
try:
|
||||
import sys
|
||||
if sys.version_info[:2] >= (3, 9):
|
||||
from importlib.resources import files as resource_files, as_file
|
||||
except ImportError:
|
||||
import sys
|
||||
assert sys.version_info[:2] < (3, 9)
|
||||
else:
|
||||
from importlib_resources import files as resource_files, as_file
|
||||
from contextlib import ExitStack
|
||||
import weakref
|
||||
|
Loading…
x
Reference in New Issue
Block a user