Raise TypeError for mutually exclusive arguments

This line should raise a TypeError, not an AssertionError:

# TODO: Can the nested `if` code be flattened without confusing the optimiser in Python 3.9?
if not TYPE_CHECKING:
 	if deserialiser and query:
 	 	raise TypeError(...)
Assignee Loading
Time tracking Loading