Skip to content

FRLM get_flow_coverage return annotation is incorrect #524

@samay2504

Description

@samay2504

Description

FRLM.get_flow_coverage() returns a coverage dictionary but is currently annotated as returning None, which is inconsistent with runtime behaviour and makes downstream type checking and editor hints inaccurate.

Steps to reproduce

coverage = model.get_flow_coverage()
print(type(coverage))

Expected behaviour

The method signature should declare a dictionary return type that matches the returned object.

Actual behaviour

The method is annotated with -> None even though it returns a dictionary.

Environment

  • spopt version: main
  • Python version: 3.11
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions