1# python >= 3.8 2 3def positional_only_call(a, /, b): 4 #? str() 5 a 6 #? int() 7 b 8 if UNDEFINED: 9 return a 10 else: 11 return b 12 13 14#? int() str() 15positional_only_call('', 1) 16 17 18def positional_only_call2(a, /, b=3): 19 if UNDEFINED: 20 return a 21 else: 22 return b 23 24#? int() 25positional_only_call2(1) 26#? int() 27positional_only_call2(SOMETHING_UNDEFINED) 28#? str() 29positional_only_call2(SOMETHING_UNDEFINED, '') 30 31# Maybe change this? Because it's actually not correct 32#? int() str() 33positional_only_call2(a=1, b='') 34#? tuple str() 35positional_only_call2(b='', a=tuple) 36