MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / isString

Function isString

markdown/treeprocessors.py:48–52  ·  view source on GitHub ↗

Return `True` if object is a string but not an [`AtomicString`][markdown.util.AtomicString].

(s: object)

Source from the content-addressed store, hash-verified

46
47
48def isString(s: object) -> bool:
49 """ Return `True` if object is a string but not an [`AtomicString`][markdown.util.AtomicString]. """
50 if not isinstance(s, util.AtomicString):
51 return isinstance(s, str)
52 return False
53
54
55class Treeprocessor(util.Processor):

Callers 2

runMethod · 0.90
__applyPatternMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected