summaryrefslogtreecommitdiff
path: root/bs4/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2020-09-26 10:36:23 -0400
committerLeonard Richardson <leonardr@segfault.org>2020-09-26 10:36:23 -0400
commite37c55b111b6d3ece22237188ad77a1ea9cd3724 (patch)
tree45bfbb5de4ce472b5e517e1dac82a194e7202f0a /bs4/__init__.py
parent2c4dcf44e97a620e8f5f735f5585b225062e3636 (diff)
Change the signatures for BeautifulSoup.insert_before and insert_after
(which are not implemented) to match PageElement.insert_before and insert_after, quieting warnings in some IDEs. [bug=1897120]
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r--bs4/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py
index a2c839c..73109d6 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -496,13 +496,13 @@ class BeautifulSoup(Tag):
container = self.string_container(subclass)
return container(s)
- def insert_before(self, successor):
+ def insert_before(self, *args):
"""This method is part of the PageElement API, but `BeautifulSoup` doesn't implement
it because there is nothing before or after it in the parse tree.
"""
raise NotImplementedError("BeautifulSoup objects don't support insert_before().")
- def insert_after(self, successor):
+ def insert_after(self, *args):
"""This method is part of the PageElement API, but `BeautifulSoup` doesn't implement
it because there is nothing before or after it in the parse tree.
"""