MCPcopy
hub / github.com/wechaty/python-wechaty / load

Method load

src/wechaty/user/tag.py:47–56  ·  view source on GitHub ↗

load tag instance

(cls, tag_id: str)

Source from the content-addressed store, hash-verified

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:

Callers 13

friendship_listenerMethod · 0.45
login_listenerMethod · 0.45
logout_listenerMethod · 0.45
message_listenerMethod · 0.45
room_invite_listenerMethod · 0.45
room_join_listenerMethod · 0.45
room_leave_listenerMethod · 0.45
room_topic_listenerMethod · 0.45
user_selfMethod · 0.45
load_pickle_dataFunction · 0.45
read_settingMethod · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_settingFunction · 0.36