Skip to content

pyrefly report includes deleted attributes #3576

Closed

Description

@jorenham

For NumPy on the 2.4.x branch it outputs

        {
          "kind": "attr",
          "name": "numpy.ta",
          "n_typable": 1,
          "n_typed": 0,
          "n_any": 0,
          "n_untyped": 1,
          "location": {
            "line": 450,
            "column": 9
          }
        },

for

for ta in ["float96", "float128", "complex192", "complex256"]:
    try:
        globals()[ta] = getattr(_core, ta)
    except AttributeError:
        pass
del ta

src

The leads to a type coverage that's too low.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coverageIssues related to `pyrefly coverage`quansight

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions