Skip to content

Need to add overload functions for allure.step() #759

@anci3ntr0ck

Description

@anci3ntr0ck

I'm submitting a ...

  • bug report

What is the current behavior?

VSCode gives an error when using allure.step() as a context:
image

Adding overload functions for allure.step() should fix this...

_TFunc = TypeVar("_TFunc", bound=Callable[..., Any])

@overload
def step(title: _TFunc) -> _TFunc: ...
@overload
def step(title: Any) -> StepContext: ...

Please tell us about your environment:

  • Allure adaptor: allure-pytest@2.13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    task:improvementChange that improves some user experience but can't be considered a new featuretheme:core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions