File: _issue_85_module.py

package info (click to toggle)
python-makefun 1.15.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 440 kB
  • sloc: python: 2,384; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 179 bytes parent folder | download
1
2
3
4
5
6
7
def forwardref_method(foo: "ForwardRef", bar: str) -> "ForwardRef":
    return ForwardRef(foo.x + bar)


class ForwardRef:
    def __init__(self, x="default"):
        self.x = x