AnandInguva commented on PR #25174:
URL: https://github.com/apache/beam/pull/25174#issuecomment-1405541735

   Some mypy related errors I am facing. Seems like the Generic NamedTuples are 
not supported in the mypy version 0.782. 
   
   If I update mypy, it is causing unrelated errors.
   ```
   apache_beam/ml/inference/utils.py:45: error: Argument 2 to 
"PredictionResult" has incompatible type "Dict[Any, Any]"; expected 
"_OUTPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/base_test.py:91: error: Argument "example" to 
"PredictionResult" has incompatible type "int"; expected "_INPUT_TYPE"  
[arg-type]
   apache_beam/ml/inference/base_test.py:92: error: Argument "inference" to 
"PredictionResult" has incompatible type "int"; expected "_OUTPUT_TYPE"  
[arg-type]
   apache_beam/ml/inference/tensorrt_inference_test.py:55: error: Argument 1 to 
"PredictionResult" has incompatible type "ndarray[Any, Any]"; expected 
"_INPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/tensorrt_inference_test.py:55: error: Argument 2 to 
"PredictionResult" has incompatible type "List[ndarray[Any, Any]]"; expected 
"_OUTPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/tensorrt_inference_test.py:63: error: Argument 1 to 
"PredictionResult" has incompatible type "ndarray[Any, Any]"; expected 
"_INPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/tensorrt_inference_test.py:63: error: Argument 2 to 
"PredictionResult" has incompatible type "List[ndarray[Any, Any]]"; expected 
"_OUTPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/tensorrt_inference_test.py:78: error: Argument 1 to 
"PredictionResult" has incompatible type "ndarray[Any, Any]"; expected 
"_INPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/tensorrt_inference_test.py:78: error: Argument 2 to 
"PredictionResult" has incompatible type "List[ndarray[Any, Any]]"; expected 
"_OUTPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/pytorch_inference_test.py:72: error: Argument 2 to 
"PredictionResult" has incompatible type "Dict[str, _OUTPUT_TYPE]"; expected 
"_OUTPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/pytorch_inference_test.py:97: error: Argument 1 to 
"PredictionResult" has incompatible type "Dict[str, Any]"; expected 
"_INPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/pytorch_inference_test.py:105: error: Argument 1 to 
"PredictionResult" has incompatible type "Dict[str, Any]"; expected 
"_INPUT_TYPE"  [arg-type]
   apache_beam/ml/inference/pytorch_inference_test.py:115: error: Argument 2 to 
"PredictionResult" has incompatible type "Dict[str, _OUTPUT_TYPE]"; expected 
"_OUTPUT_TYPE"  [arg-type]
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to