Skip to content

Commit

Permalink
featurecollection.py: Fix redefined pylint complaints for args and su…
Browse files Browse the repository at this point in the history
…ppress `redefined-builtin` pylint complaints.

PiperOrigin-RevId: 660450806
  • Loading branch information
schwehr authored and Google Earth Engine Authors committed Aug 7, 2024
1 parent 7d50dae commit 9d7b5db
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions python/ee/featurecollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

from ee import _utils
from ee import apifunction
from ee import classifier
from ee import clusterer
from ee import classifier as ee_classifier
from ee import clusterer as ee_clusterer
from ee import collection
from ee import computedobject
from ee import data
Expand All @@ -24,10 +24,12 @@
from ee import feature
from ee import geometry
from ee import image
from ee import reducer
from ee import reducer as ee_reducer

_ClassifierType = Union['classifier.Classifier', computedobject.ComputedObject]
_ClustererType = Union['clusterer.Clusterer', computedobject.ComputedObject]
_ClassifierType = Union[
'ee_classifier.Classifier', computedobject.ComputedObject
]
_ClustererType = Union['ee_clusterer.Clusterer', computedobject.ComputedObject]
_ErrorMarginType = Union[
float,
'ee_number.Number',
Expand All @@ -39,7 +41,7 @@
List[Any], Tuple[Any, Any], 'ee_list.List', computedobject.ComputedObject
]
_NumberType = Union[float, 'ee_number.Number', computedobject.ComputedObject]
_ReducerType = Union[reducer.Reducer, computedobject.ComputedObject]
_ReducerType = Union[ee_reducer.Reducer, computedobject.ComputedObject]
_StringType = Union[str, 'ee_string.String', computedobject.ComputedObject]


Expand Down Expand Up @@ -283,7 +285,7 @@ def cluster(

def inverseDistance(
self,
range: _NumberType,
range: _NumberType, # pylint: disable=redefined-builtin
propertyName: _StringType, # pylint: disable=invalid-name
mean: _NumberType,
stdDev: _NumberType, # pylint: disable=invalid-name
Expand Down Expand Up @@ -317,7 +319,7 @@ def kriging(
self,
propertyName: _StringType, # pylint: disable=invalid-name
shape: _StringType,
range: _NumberType,
range: _NumberType, # pylint: disable=redefined-builtin
sill: _NumberType,
nugget: _NumberType,
maxDistance: Optional[_NumberType] = None, # pylint: disable=invalid-name
Expand Down

0 comments on commit 9d7b5db

Please sign in to comment.