Skip to content

Commit 85f8b82

Browse files
committed
plugins.handlers: use generics instead of typing aliases
1 parent 08dff92 commit 85f8b82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sopel/plugins/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
import itertools
5151
import os
5252
import sys
53-
from typing import List, Optional, TYPE_CHECKING
53+
from typing import Optional, TYPE_CHECKING
5454

5555
# TODO: refactor along with usage in sopel.__init__ in py3.8+ world
5656
import importlib_metadata
@@ -161,7 +161,7 @@ def has_setup(self) -> bool:
161161
"""
162162

163163
@abc.abstractmethod
164-
def get_capability_requests(self) -> List[plugin_decorators.capability]:
164+
def get_capability_requests(self) -> list[plugin_decorators.capability]:
165165
"""Retrieve the plugin's list of capability requests."""
166166

167167
@abc.abstractmethod
@@ -363,7 +363,7 @@ def has_setup(self):
363363
"""
364364
return hasattr(self.module, 'setup')
365365

366-
def get_capability_requests(self) -> List[plugin_decorators.capability]:
366+
def get_capability_requests(self) -> list[plugin_decorators.capability]:
367367
return [
368368
module_attribute
369369
for module_attribute in vars(self.module).values()

0 commit comments

Comments
 (0)