MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / is_rst_docstring

Function is_rst_docstring

diffusers/utils/check_repo.py:703–713  ·  view source on GitHub ↗

Returns `True` if `docstring` is written in rst.

(docstring)

Source from the content-addressed store, hash-verified

701
702
703def is_rst_docstring(docstring):
704 """
705 Returns `True` if `docstring` is written in rst.
706 """
707 if _re_rst_special_words.search(docstring) is not None:
708 return True
709 if _re_double_backquotes.search(docstring) is not None:
710 return True
711 if _re_rst_example.search(docstring) is not None:
712 return True
713 return False
714
715
716def check_docstrings_are_in_md():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected