-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
@myscon, thanks for adding type annotations! The following is using the current head of main:
Note that these errors come from a custom environment (google3) that uses bazel for building and pytype for checking the type annotations. I got these complaints:
File "third_party/py/ltgee/landtrendr.py", line 260, in _build_lt_collection: bad return type [bad-return-type]
Expected: ee.imagecollection.ImageCollection
Actually returned: ee.image.Image
File "third_party/py/ltgee/landtrendr.py", line 262, in _build_lt_collection: bad return type [bad-return-type]
Expected: ee.imagecollection.ImageCollection
Actually returned: ee.image.Image
File "third_party/py/ltgee/landtrendr.py", line 264, in _build_lt_collection: bad return type [bad-return-type]
Expected: ee.imagecollection.ImageCollection
Actually returned: ee.image.Image
File "third_party/py/ltgee/landtrendr.py", line 286, in LtCollection: Type annotation for prefix does not match type of assignment [annotation-type-mismatch]
Annotation: str (Did you mean 'str | None'?)
Assignment: None
File "third_party/py/ltgee/landtrendr.py", line 302, in LtCollection: Type annotation for prefix does not match type of assignment [annotation-type-mismatch]
Annotation: str (Did you mean 'str | None'?)
Assignment: None
File "third_party/py/ltgee/landtrendr.py", line 424, in _tc_reducer: Function LtCollection._reducer expects 2 arg(s), got 3 [wrong-arg-count]
Expected: (image_collection, reducer)
Actually passed: (image_collection, reducer, _)
File "third_party/py/ltgee/landtrendr.py", line 491, in _ensemble_reducer: Function LtCollection._reducer expects 2 arg(s), got 3 [wrong-arg-count]
Expected: (image_collection, reducer)
Actually passed: (image_collection, reducer, _)
File "third_party/py/ltgee/landtrendr.py", line 544, in _ensemble_reducer_alt: Function LtCollection._reducer expects 2 arg(s), got 3 [wrong-arg-count]
Expected: (image_collection, reducer)
Actually passed: (image_collection, reducer, _)
File "third_party/py/ltgee/landtrendr.py", line 595, in run_params: No attribute '_run_params' on LandTrendr [attribute-error]
File "third_party/py/ltgee/landtrendr.py", line 848, in get_segment_data: bad return type [bad-return-type]
Expected: ee.image.Image
Actually returned: None
File "third_party/py/ltgee/landtrendr.py", line 860, in get_segment_count: Function LandTrendr.get_segment_count was called with the wrong arguments [wrong-arg-types]
Expected: (segment_data: ee.image.Image)
Actually passed: (segment_data: LandTrendr)
Metadata
Metadata
Assignees
Labels
No labels