Skip to content

Commit be73676

Browse files
committed
Use pass instead of raise for abstract methods
1 parent a3b89f3 commit be73676

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

trinity/extensibility/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def name(self) -> str:
120120
"""
121121
Describe the name of the plugin.
122122
"""
123-
raise NotImplementedError(
124-
"Must be implemented by subclasses"
125-
)
123+
pass
126124

127125
@property
128126
def logger(self) -> logging.Logger:

trinity/extensibility/plugin_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def is_responsible_for_plugin(self, plugin: BasePlugin) -> bool:
5858
Define whether a :class:`~trinity.extensibility.plugin_manager.PluginManager` operating
5959
under this scope is responsible to manage the given ``plugin``.
6060
"""
61-
raise NotImplementedError("Must be implemented by subclasses")
61+
pass
6262

6363
@abstractmethod
6464
def create_plugin_context(self,
@@ -67,7 +67,7 @@ def create_plugin_context(self,
6767
"""
6868
Create the :class:`~trinity.extensibility.plugin.PluginContext` for the given ``plugin``.
6969
"""
70-
raise NotImplementedError("Must be implemented by subclasses")
70+
pass
7171

7272

7373
class MainAndIsolatedProcessScope(BaseManagerProcessScope):

0 commit comments

Comments
 (0)