Open sairam4123 opened 4 years ago
I've added support for frozenset type and introduced "complex" types, which can include multiple types, like "iter" mentioned by you.
It's not really flexible, and it may be possible to implement checks for the type methods
It seems tuples currently are not working due to their names being different, e.g.: according to documentation, iterator should have iter method. But this feature is quite large.
Also, it seems the "tuple" type is not detected correctly (for the entire Python CPT): (1, 2, 3) will have (int, int, int) type name, but "tuple" is expected. I'm trying to get the correct name differently, but it should be tested.
Is there any progress on this?
I am trying to add a converters like this:
this can be simplified even further using like this
But as there's no class like iterable in Postfix here. So, the workaround would be this:
So it would be nice if you add support for other classes too. like frozenset, iter, ... Thank you!