Description
Instead of using list for holding the tags of a specific dag (as we can see at the docs), I suggest using set instead, specifically MutableSet for the type hinting, and python set as the default implementation.
Use case/motivation
I would want to add multiple tags (even the same ones) faster, without worrying about duplicates, and reduce the memory usage because of it. Also, it's good to check if a certain tag already exists.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Description
Instead of using
listfor holding the tags of a specific dag (as we can see at the docs), I suggest usingsetinstead, specificallyMutableSetfor the type hinting, and pythonsetas the default implementation.Use case/motivation
I would want to add multiple tags (even the same ones) faster, without worrying about duplicates, and reduce the memory usage because of it. Also, it's good to check if a certain tag already exists.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct