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 2cb32f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rtree/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,12 @@ def get_index_type(self) -> int:
try:
return self._type
except AttributeError:
<<<<<<< HEAD
self._type = type = core.rt.IndexProperty_GetIndexType(self.handle)
=======
type = core.rt.IndexProperty_GetIndexType(self.handle)
self._type: int = type
>>>>>>> f9f2b83 (Reduce overhead.)
return type

def set_index_type(self, value: int) -> None:
Expand All @@ -1534,7 +1539,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 2cb32f0

Please sign in to comment.