MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / get_level

Method get_level

tools/codestyle/docstring_checker.py:46–53  ·  view source on GitHub ↗
(self, string, indent='    ')

Source from the content-addressed store, hash-verified

44 self.args = {} #arg_name->arg_type
45
46 def get_level(self, string, indent=' '):
47 level = 0
48 unit_size = len(indent)
49 while string[:unit_size] == indent:
50 string = string[unit_size:]
51 level += 1
52
53 return level
54
55 def parse(self, doc):
56 """parse gets sections from doc

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected