File: static.py

package info (click to toggle)
python-multimethod 2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: python: 731; makefile: 13
file content (12 lines) | stat: -rw-r--r-- 196 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
"""Fixture for static analysis."""

from multimethod import multidispatch


class cls:
    @multidispatch
    def method(self) -> int:
        return 0


reveal_type(cls().method())  # noqa: F821