MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / check

Method check

tools/sampcd_processor.py:282–288  ·  view source on GitHub ↗
(self, docstring)

Source from the content-addressed store, hash-verified

280 )
281
282 def check(self, docstring):
283 for match_obj in self._pattern.finditer(docstring):
284 comment = match_obj.group('comment').strip()
285 if not comment.startswith('#'):
286 return True
287
288 return False
289
290
291class SkipNoReason(BadStatement):

Callers 1

_check_bad_statementsMethod · 0.45

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected