|
|
Optional[Any] | search (self, str string, int pos=..., int endpos=...) |
| |
|
str | pattern (self) |
| |
|
| __init_subclass__ (cls, *args, **kwargs) |
| |
|
| __new__ (mcls, name, bases, namespace, **kwargs) |
| |
|
| __init__ (cls, *args, **kwargs) |
| |
|
| __subclasscheck__ (cls, other) |
| |
|
| __instancecheck__ (cls, instance) |
| |
|
| __eq__ (cls, other) |
| |
|
int | __hash__ (cls) |
| |
|
|
TypeAlias | _IncomingMarkup = Union[str, bytes, IO[str], IO[bytes]] |
| |
|
TypeAlias | _RawMarkup = Union[str, bytes] |
| |
|
TypeAlias | _Encoding = str |
| |
|
TypeAlias | _Encodings = Iterable[_Encoding] |
| |
|
TypeAlias | _NamespacePrefix = str |
| |
|
TypeAlias | _NamespaceURL = str |
| |
|
TypeAlias | _NamespaceMapping = Dict[_NamespacePrefix, _NamespaceURL] |
| |
|
TypeAlias | _InvertedNamespaceMapping = Dict[_NamespaceURL, _NamespacePrefix] |
| |
|
TypeAlias | _RawAttributeValue = str |
| |
| tuple | _RawAttributeValues |
| |
|
TypeAlias | _AttributeValue = Union[str, "AttributeValueList"] |
| |
|
TypeAlias | _AttributeValues = Dict[str, _AttributeValue] |
| |
|
TypeAlias | _RawOrProcessedAttributeValues = Union[_RawAttributeValues, _AttributeValues] |
| |
|
TypeAlias | _InsertableElement = Union["PageElement", str] |
| |
|
TypeAlias | _PageElementMatchFunction = Callable[["PageElement"], bool] |
| |
|
TypeAlias | _TagMatchFunction = Callable[["Tag"], bool] |
| |
|
TypeAlias | _NullableStringMatchFunction = Callable[[Optional[str]], bool] |
| |
|
TypeAlias | _StringMatchFunction = Callable[[str], bool] |
| |
|
TypeAlias | _BaseStrainable = Union[str, bytes, Pattern[str], bool] |
| |
|
TypeAlias | _BaseStrainableElement = Union[_BaseStrainable, _TagMatchFunction] |
| |
|
TypeAlias | _BaseStrainableAttribute = Union[_BaseStrainable, _NullableStringMatchFunction] |
| |
| TypeAlias | _StrainableElement |
| |
| TypeAlias | _StrainableAttribute |
| |
|
TypeAlias | _StrainableString = _StrainableAttribute |
| |
|
TypeAlias | _StrainableAttributes = Dict[str, _StrainableAttribute] |
| |
|
TypeAlias | _OneElement = Union["PageElement", "Tag", "NavigableString"] |
| |
|
TypeAlias | _AtMostOneElement = Optional[_OneElement] |
| |
|
TypeAlias | _AtMostOneTag = Optional["Tag"] |
| |
|
TypeAlias | _AtMostOneNavigableString = Optional["NavigableString"] |
| |
|
TypeAlias | _QueryResults = "ResultSet[_OneElement]" |
| |
|
TypeAlias | _SomeTags = "ResultSet[Tag]" |
| |
|
TypeAlias | _SomeNavigableStrings = "ResultSet[NavigableString]" |
| |
|
bool | _is_protocol = True |
| |
|
bool | _is_runtime_protocol = False |
| |
A protocol object which can accept either Python's built-in
`re.Pattern` objects, or the similar ``Regex`` objects defined by the
third-party ``regex`` package.