Parse error Numpy

Hi,

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube: 9.9.0.65466, SonarScanner: 4.8.0.2856)
  • how is SonarQube deployed: zip
    Python version: 3.11

##[error]12:02:40.434 ERROR: Unable to parse file: arc/common/models/frequency_plan/frequency_plan_matrix.py

12:02:40.434 ERROR: Unable to parse file: arc/common/models/frequency_plan/frequency_plan_matrix.py

##[error]12:02:40.435 ERROR: Parse error at line 438 column 23:

The line:
ranges = np.r_[*list(range(s, e) for s, e in longitude_ranges)]

Per Numpy documentation it should be fine:
https://numpy.org/doc/stable/reference/generated/numpy.r_.html

Thanks
Mislav

Dear @mislav.cosic,

Thank you very much for reporting this issue! There is indeed an issue with unpacking values inside a subscription.

I have created this ticket to track our progress.

Sorry for the inconvenience.

David

3 Likes