darrenburns / ward

Ward is a modern test framework for Python with a focus on productivity and readability.
https://ward.readthedocs.io
MIT License
1.21k stars 53 forks source link

Pyright detected issues #378

Open mgzenitech opened 5 months ago

mgzenitech commented 5 months ago
from ward import fixture, Scope

@fixture(scope = Scope.Global)
...

this returns two issues: from ward import >>>fixture<<<

Type of "fixture" is partially unknown
  Type of "fixture" is "(func: Unknown | None = None, *, scope: Scope | str = Scope.Test) -> (partial[Unknown] | _Wrapped[..., Unknown, (*args: Unknown, **kwargs: Unknown), Unknown])"

>>>@fixture(scope = Scope.Global)<<<

  Untyped function decorator obscures type of function; ignoring decorator