예제 #1
0
 def check_isolation(par1,
                     par2=3,
                     first: Any = Isolated(),
                     *,
                     second: Any):
     second["a"] = 0
     first["a"] = -10
     return first, second
예제 #2
0
 def check_isolation(*, d: Any = Isolated()):
     d["a"] = 0
     return d
예제 #3
0
 def check_isolation(first: Any, *, second: Any = Isolated()):
     second["a"] = 0
     first["a"] = -10
     return first, second
예제 #4
0
 def support_positionals(x=Isolated(), y=5, /):
     x[0] += 1
     return x, y