MCPcopy Index your code
hub / github.com/python/cpython / reset

Method reset

Tools/clinic/libclinic/dsl_parser.py:286–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

284 self.reset()
285
286 def reset(self) -> None:
287 self.function = None
288 self.state = self.state_dsl_start
289 self.expecting_parameters = True
290 self.keyword_only = False
291 self.positional_only = False
292 self.deprecated_positional = None
293 self.deprecated_keyword = None
294 self.group = 0
295 self.parameter_state: ParamState = ParamState.START
296 self.indent = IndentStack()
297 self.kind = CALLABLE
298 self.coexist = False
299 self.forced_text_signature = None
300 self.parameter_continuation = ''
301 self.preserve_output = False
302 self.critical_section = False
303 self.target_critical_section = []
304 self.disable_fastcall = False
305 self.permit_long_summary = False
306 self.permit_long_docstring_body = False
307
308 def directive_module(self, name: str) -> None:
309 fields = name.split('.')[:-1]

Callers 2

__init__Method · 0.95
parseMethod · 0.95

Calls 1

IndentStackClass · 0.85

Tested by

no test coverage detected