Skip to content

Commit

Permalink
Reduce overhead.
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieWitherden committed Nov 20, 2024
1 parent d7c3fa1 commit c40cc2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rtree/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,8 @@ def get_index_type(self) -> int:
try:
return self._type
except AttributeError:
self._type = type = core.rt.IndexProperty_GetIndexType(self.handle)
type = core.rt.IndexProperty_GetIndexType(self.handle)
self._type: int = type
return type

def set_index_type(self, value: int) -> None:
Expand All @@ -1534,7 +1535,7 @@ def get_dimension(self) -> int:
return self._dimension
except AttributeError:
dim = core.rt.IndexProperty_GetDimension(self.handle)
self._dimension = dim
self._dimension: int = dim
return dim

def set_dimension(self, value: int) -> None:
Expand Down

0 comments on commit c40cc2c

Please sign in to comment.