Rename _handler.py to _basehandler.py (#3761)

This commit is contained in:
Harshil 2023-06-25 18:38:26 +05:30 committed by GitHub
parent 3c87e450fb
commit b0cff31fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 20 additions and 20 deletions

View file

@ -63,6 +63,7 @@ from . import filters
from ._aioratelimiter import AIORateLimiter from ._aioratelimiter import AIORateLimiter
from ._application import Application, ApplicationHandlerStop from ._application import Application, ApplicationHandlerStop
from ._applicationbuilder import ApplicationBuilder from ._applicationbuilder import ApplicationBuilder
from ._basehandler import BaseHandler
from ._basepersistence import BasePersistence, PersistenceInput from ._basepersistence import BasePersistence, PersistenceInput
from ._baseratelimiter import BaseRateLimiter from ._baseratelimiter import BaseRateLimiter
from ._baseupdateprocessor import BaseUpdateProcessor, SimpleUpdateProcessor from ._baseupdateprocessor import BaseUpdateProcessor, SimpleUpdateProcessor
@ -78,7 +79,6 @@ from ._conversationhandler import ConversationHandler
from ._defaults import Defaults from ._defaults import Defaults
from ._dictpersistence import DictPersistence from ._dictpersistence import DictPersistence
from ._extbot import ExtBot from ._extbot import ExtBot
from ._handler import BaseHandler
from ._inlinequeryhandler import InlineQueryHandler from ._inlinequeryhandler import InlineQueryHandler
from ._jobqueue import Job, JobQueue from ._jobqueue import Job, JobQueue
from ._messagehandler import MessageHandler from ._messagehandler import MessageHandler

View file

@ -56,11 +56,11 @@ from telegram._utils.logging import get_logger
from telegram._utils.types import SCT, DVType, ODVInput from telegram._utils.types import SCT, DVType, ODVInput
from telegram._utils.warnings import warn from telegram._utils.warnings import warn
from telegram.error import TelegramError from telegram.error import TelegramError
from telegram.ext._basehandler import BaseHandler
from telegram.ext._basepersistence import BasePersistence from telegram.ext._basepersistence import BasePersistence
from telegram.ext._baseupdateprocessor import BaseUpdateProcessor from telegram.ext._baseupdateprocessor import BaseUpdateProcessor
from telegram.ext._contexttypes import ContextTypes from telegram.ext._contexttypes import ContextTypes
from telegram.ext._extbot import ExtBot from telegram.ext._extbot import ExtBot
from telegram.ext._handler import BaseHandler
from telegram.ext._updater import Updater from telegram.ext._updater import Updater
from telegram.ext._utils.stack import was_called_by from telegram.ext._utils.stack import was_called_by
from telegram.ext._utils.trackingdict import TrackingDict from telegram.ext._utils.trackingdict import TrackingDict

View file

@ -78,7 +78,7 @@ class BaseHandler(Generic[UT, CCT], ABC):
Attributes: Attributes:
callback (:term:`coroutine function`): The callback function for this handler. callback (:term:`coroutine function`): The callback function for this handler.
block (:obj:`bool`): Determines whether the callback will run in a blocking way.. block (:obj:`bool`): Determines whether the callback will run in a blocking way.
""" """

View file

@ -24,7 +24,7 @@ from typing import TYPE_CHECKING, Any, Callable, Match, Optional, Pattern, TypeV
from telegram import Update from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -23,7 +23,7 @@ from typing import FrozenSet, Optional
from telegram import Update from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import RT, SCT, DVType from telegram._utils.types import RT, SCT, DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback

View file

@ -22,7 +22,7 @@ from typing import ClassVar, Optional, TypeVar
from telegram import Update from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
RT = TypeVar("RT") RT = TypeVar("RT")

View file

@ -23,7 +23,7 @@ from typing import TYPE_CHECKING, Any, Match, Optional, Pattern, TypeVar, Union,
from telegram import Update from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
RT = TypeVar("RT") RT = TypeVar("RT")

View file

@ -24,7 +24,7 @@ from telegram import MessageEntity, Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import SCT, DVType from telegram._utils.types import SCT, DVType
from telegram.ext import filters as filters_module from telegram.ext import filters as filters_module
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, FilterDataDict, HandlerCallback from telegram.ext._utils.types import CCT, FilterDataDict, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -41,10 +41,10 @@ from telegram._utils.logging import get_logger
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram._utils.warnings import warn from telegram._utils.warnings import warn
from telegram.ext._application import ApplicationHandlerStop from telegram.ext._application import ApplicationHandlerStop
from telegram.ext._basehandler import BaseHandler
from telegram.ext._callbackqueryhandler import CallbackQueryHandler from telegram.ext._callbackqueryhandler import CallbackQueryHandler
from telegram.ext._choseninlineresulthandler import ChosenInlineResultHandler from telegram.ext._choseninlineresulthandler import ChosenInlineResultHandler
from telegram.ext._extbot import ExtBot from telegram.ext._extbot import ExtBot
from telegram.ext._handler import BaseHandler
from telegram.ext._inlinequeryhandler import InlineQueryHandler from telegram.ext._inlinequeryhandler import InlineQueryHandler
from telegram.ext._stringcommandhandler import StringCommandHandler from telegram.ext._stringcommandhandler import StringCommandHandler
from telegram.ext._stringregexhandler import StringRegexHandler from telegram.ext._stringregexhandler import StringRegexHandler

View file

@ -23,7 +23,7 @@ from typing import TYPE_CHECKING, Any, List, Match, Optional, Pattern, TypeVar,
from telegram import Update from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -23,7 +23,7 @@ from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext import filters as filters_module from telegram.ext import filters as filters_module
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -20,7 +20,7 @@
from telegram import Update from telegram import Update
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT from telegram.ext._utils.types import CCT

View file

@ -20,7 +20,7 @@
from telegram import Update from telegram import Update
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT from telegram.ext._utils.types import CCT

View file

@ -20,7 +20,7 @@
from telegram import Update from telegram import Update
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT from telegram.ext._utils.types import CCT

View file

@ -24,7 +24,7 @@ from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import SCT, DVType from telegram._utils.types import SCT, DVType
from telegram.ext import filters as filters_module from telegram.ext import filters as filters_module
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -20,7 +20,7 @@
from telegram import Update from telegram import Update
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT from telegram.ext._utils.types import CCT

View file

@ -22,7 +22,7 @@ from typing import TYPE_CHECKING, Any, List, Optional
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, RT, HandlerCallback from telegram.ext._utils.types import CCT, RT, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -23,7 +23,7 @@ from typing import TYPE_CHECKING, Any, Match, Optional, Pattern, TypeVar, Union
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
if TYPE_CHECKING: if TYPE_CHECKING:

View file

@ -22,7 +22,7 @@ from typing import Optional, Type, TypeVar
from telegram._utils.defaultvalue import DEFAULT_TRUE from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType from telegram._utils.types import DVType
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT, HandlerCallback from telegram.ext._utils.types import CCT, HandlerCallback
RT = TypeVar("RT") RT = TypeVar("RT")

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser Public License # You should have received a copy of the GNU Lesser Public License
# along with this program. If not, see [http://www.gnu.org/licenses/]. # along with this program. If not, see [http://www.gnu.org/licenses/].
from telegram.ext._handler import BaseHandler from telegram.ext._basehandler import BaseHandler
from tests.auxil.slots import mro_slots from tests.auxil.slots import mro_slots