diff options
author | Leonard Richardson <leonardr@segfault.org> | 2020-04-04 18:33:31 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2020-04-04 18:33:31 -0400 |
commit | 09dba81453edfbb5ba778c0a4b5e1c804e7ed1b0 (patch) | |
tree | ea25a9f25f69b6c7c1b5e0239f0581f47f2c2ee9 /bs4/element.py | |
parent | e381bc0e8be4178107ef326b076ba7e747f36c15 (diff) |
select() always returns a Tag, so be more specific about its return type.
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/element.py b/bs4/element.py index 9c6d3cc..78de15b 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -1763,8 +1763,8 @@ class Tag(PageElement): :param kwargs: Keyword arguments to be passed into SoupSieve's soupsieve.select() method. - :return: A PageElement. - :rtype: Union[bs4.element.Tag, bs4.element.NavigableString] + :return: A Tag. + :rtype: bs4.element.Tag """ value = self.select(selector, namespaces, 1, **kwargs) if value: @@ -1788,7 +1788,7 @@ class Tag(PageElement): :param kwargs: Keyword arguments to be passed into SoupSieve's soupsieve.select() method. - :return: A ResultSet of PageElements. + :return: A ResultSet of Tags. :rtype: bs4.element.ResultSet """ if namespaces is None: |