File: wrong_signature_forward_ref.py

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


class Parent:
    def metoda(self) -> None:
        pass


class Child(Parent):
    @override
    def metoda(self) -> "Child":
        return self