Skip to content

Commit 1403386

Browse files
committed
[ENH] Add type hints to active_grids property in grid.py
Added type hints to `active_grids` getter and setter, improving code readability and enabling better type checking. This enhancement ensures consistency in type usage for the `active_grids` property.
1 parent 2401191 commit 1403386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gempy/core/data/grid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ def bounding_box(self):
118118
return bounding_box_points
119119

120120
@property
121-
def active_grids(self):
121+
def active_grids(self) -> GridTypes:
122122
return self._active_grids
123123

124124
@active_grids.setter
125-
def active_grids(self, value):
125+
def active_grids(self, value: GridTypes):
126126
self._active_grids = value
127127
self._update_values()
128128

0 commit comments

Comments
 (0)