Skip to content

Commit

Permalink
Fix typing error by not importing a name that may or may not exist. F…
Browse files Browse the repository at this point in the history
…ixes python#83.
  • Loading branch information
jaraco committed Mar 2, 2020
1 parent b2f1945 commit f08ec1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importlib_resources/_py3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import typing

from . import abc as resources_abc
from . import trees
Expand All @@ -10,7 +11,6 @@
from pathlib import Path
from types import ModuleType
from typing import Iterable, Iterator, Optional, Set, Union # noqa: F401
from typing import ContextManager
from typing import cast
from typing.io import BinaryIO, TextIO

Expand Down Expand Up @@ -140,7 +140,7 @@ def files(package: Package) -> trees.Traversable:

def path(
package: Package, resource: Resource,
) -> ContextManager[Path]:
) -> typing.ContextManager[Path]:
"""A context manager providing a file path object to the resource.
If the resource does not already exist on its own on the file system,
Expand Down

0 comments on commit f08ec1c

Please sign in to comment.