load tag instance
(cls, tag_id: str)
| 45 | |
| 46 | @classmethod |
| 47 | def load(cls, tag_id: str) -> Tag: |
| 48 | """ |
| 49 | load tag instance |
| 50 | """ |
| 51 | if tag_id in cls._pool: |
| 52 | return cls._pool[tag_id] |
| 53 | |
| 54 | new_tag = cls(tag_id) |
| 55 | cls._pool[tag_id] = new_tag |
| 56 | return new_tag |
| 57 | |
| 58 | @classmethod |
| 59 | def get(cls, tag_id: str) -> Tag: |
no outgoing calls