Skip to content

Commit

Permalink
mention preoccupied.proxytype [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
obriencj committed Apr 16, 2024
1 parent a60968d commit f7fe3ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mypy/proxytype.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
specifically for the behavior of koji.MultiCallSession proxying to
koji.ClientSession
This became the basis for the slightly more generalized
preoccupied.proxytype: https://github.com/obriencj/python-proxytype
:author: Christopher O'Brien <[email protected]>
:license: GPL v3
"""
Expand Down Expand Up @@ -116,10 +119,9 @@ def clone_func(
cpt.arg_types[0] = slf

# overwrite return type
if returntype is not None:
n = returntype.copy_modified()
n.args = (tp.ret_type, )
cpt.ret_type = n
n = returntype.copy_modified()
n.args = (tp.ret_type, )
cpt.ret_type = n

cp = FuncDef(fn._name, None)
cp.type = cpt
Expand Down

0 comments on commit f7fe3ff

Please sign in to comment.