Skip to content

Commit bd22c2b

Browse files
authored
chore: Remove unneded _tiff attribute from HasTiffReference (#89)
* chore: Remove unneded `_tiff` reference from HasTiffReference * lint
1 parent 3945ab1 commit bd22c2b

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/async_geotiff/_fetch.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
if TYPE_CHECKING:
1313
from collections.abc import Sequence
1414

15-
from async_tiff import TIFF, ImageFileDirectory
1615
from async_tiff import Array as AsyncTiffArray
16+
from async_tiff import ImageFileDirectory
1717
from pyproj import CRS
1818

1919

@@ -30,11 +30,6 @@ def _mask_ifd(self) -> ImageFileDirectory | None:
3030
"""The mask IFD for this image (index, IFD), if any."""
3131
...
3232

33-
@property
34-
def _tiff(self) -> TIFF:
35-
"""A reference to the underlying TIFF object."""
36-
...
37-
3833
@property
3934
def crs(self) -> CRS:
4035
"""The coordinate reference system."""

src/async_geotiff/_overview.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
from async_geotiff._transform import TransformMixin
1111

1212
if TYPE_CHECKING:
13-
from async_tiff import TIFF, GeoKeyDirectory, ImageFileDirectory
13+
from async_tiff import GeoKeyDirectory, ImageFileDirectory
1414
from pyproj.crs import CRS
1515

1616
from async_geotiff import GeoTIFF
1717

18-
# ruff: noqa: SLF001
19-
2018

2119
@dataclass(init=False, frozen=True, kw_only=True, eq=False, repr=False)
2220
class Overview(ReadMixin, FetchTileMixin, TransformMixin):
@@ -61,11 +59,6 @@ def _create(
6159

6260
return instance
6361

64-
@property
65-
def _tiff(self) -> TIFF:
66-
"""A reference to the underlying TIFF object."""
67-
return self._geotiff._tiff
68-
6962
@property
7063
def crs(self) -> CRS:
7164
"""The coordinate reference system of the overview."""

0 commit comments

Comments
 (0)