mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 02:46:18 +03:00
Move import to top of file
This commit is contained in:
parent
5f805c39cc
commit
74b87ae748
|
@ -49,6 +49,9 @@ except ImportError as ex:
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from . import Image
|
||||||
|
|
||||||
|
|
||||||
class PyAccess:
|
class PyAccess:
|
||||||
def __init__(self, img: Image.Image, readonly: bool = False) -> None:
|
def __init__(self, img: Image.Image, readonly: bool = False) -> None:
|
||||||
|
@ -371,7 +374,3 @@ def new(img: Image.Image, readonly: bool = False) -> PyAccess | None:
|
||||||
logger.debug("PyAccess Not Implemented: %s", img.mode)
|
logger.debug("PyAccess Not Implemented: %s", img.mode)
|
||||||
return None
|
return None
|
||||||
return access_type(img, readonly)
|
return access_type(img, readonly)
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from . import Image
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user