MCPcopy
hub / github.com/nonebot/nonebot2 / copy

Method copy

nonebot/internal/adapter/message.py:405–407  ·  view source on GitHub ↗

深拷贝消息

(self)

Source from the content-addressed store, hash-verified

403 return ret
404
405 def copy(self) -> Self:
406 """深拷贝消息"""
407 return deepcopy(self)
408
409 def include(self, *types: str) -> Self:
410 """过滤消息

Callers 15

__add__Method · 0.95
deep_updateFunction · 0.45
get_valueMethod · 0.45
get_adaptersFunction · 0.45
handle_eventFunction · 0.45
_get_final_kwargsMethod · 0.45
requestMethod · 0.45
stream_requestMethod · 0.45
_handle_wsMethod · 0.45
__init__Method · 0.45
joinMethod · 0.45
test_unsetFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_unsetFunction · 0.36
_wrapperFunction · 0.36
test_segment_copyFunction · 0.36