Open iwconfig opened 1 year ago
A possible solution:
@mul_infix
def AS(a: Binding, b: str) -> Binding:
if isinstance(a, Binding):
return a._replace(variable_alias=b)
a.__name__ = b
return a
Not sure if it's enough though but it works fine with my basic example
I'd like to be able to change the name of the class as it's represented in the query.
Example:
and instead of
I'd like to do something like
or
Of course I can do it like this
but I think using the
AS
function for this is much more suitable.