MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / push_scope

Method push_scope

pywebio/session/base.py:91–94  ·  view source on GitHub ↗

进入新scope

(self, name)

Source from the content-addressed store, hash-verified

89 raise ValueError("ROOT Scope can't pop") from None
90
91 def push_scope(self, name):
92 """进入新scope"""
93 task_id = type(self).get_current_task_id()
94 self.scope_stack[task_id].append(name)
95
96 def send_task_command(self, command):
97 raise NotImplementedError

Callers 2

__enter__Method · 0.80
__enter__Method · 0.80

Calls 2

appendMethod · 0.80
get_current_task_idMethod · 0.45

Tested by

no test coverage detected