lst = [1, 2, 3]
match lst:
case list((1, 2, 3)):
print(2)
gives 2
as output, but,
from fractions import Fraction
frctn = Fraction(1, 2)
match frctn:
case Fraction(1, 2):
print(1)
gives,
TypeError: Fraction() accepts 0 positional sub-patterns (2 given)
any specific reasoning for allowing positional sub-patterns for some types while not allowing them for some types?