File: passing_rewrite.py

package info (click to toggle)
python-overrides 7.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 244 kB
  • sloc: python: 1,661; sh: 5; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
""""Bug."""
from typing import Callable, TypeVar, ParamSpec

P = ParamSpec("P")
T = TypeVar("T")

try:
    from overrides import override
except ModuleNotFoundError:

    def override(func: Callable[P, T]) -> Callable[P, T]:  # type: ignore[no-redef]
        return func


print(override)