Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename _handler.py to _basehandler.py #3761

Merged
merged 3 commits into from Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion telegram/ext/__init__.py
Expand Up @@ -63,6 +63,7 @@
from ._aioratelimiter import AIORateLimiter
from ._application import Application, ApplicationHandlerStop
from ._applicationbuilder import ApplicationBuilder
from ._basehandler import BaseHandler
from ._basepersistence import BasePersistence, PersistenceInput
from ._baseratelimiter import BaseRateLimiter
from ._baseupdateprocessor import BaseUpdateProcessor, SimpleUpdateProcessor
Expand All @@ -78,7 +79,6 @@
from ._defaults import Defaults
from ._dictpersistence import DictPersistence
from ._extbot import ExtBot
from ._handler import BaseHandler
from ._inlinequeryhandler import InlineQueryHandler
from ._jobqueue import Job, JobQueue
from ._messagehandler import MessageHandler
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_application.py
Expand Up @@ -56,11 +56,11 @@
from telegram._utils.types import SCT, DVType, ODVInput
from telegram._utils.warnings import warn
from telegram.error import TelegramError
from telegram.ext._basehandler import BaseHandler
from telegram.ext._basepersistence import BasePersistence
from telegram.ext._baseupdateprocessor import BaseUpdateProcessor
from telegram.ext._contexttypes import ContextTypes
from telegram.ext._extbot import ExtBot
from telegram.ext._handler import BaseHandler
from telegram.ext._updater import Updater
from telegram.ext._utils.stack import was_called_by
from telegram.ext._utils.trackingdict import TrackingDict
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_handler.py → telegram/ext/_basehandler.py
Expand Up @@ -78,7 +78,7 @@ async def callback(update: Update, context: CallbackContext)

Attributes:
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.

"""

Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_callbackqueryhandler.py
Expand Up @@ -24,7 +24,7 @@
from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_chatjoinrequesthandler.py
Expand Up @@ -23,7 +23,7 @@
from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE
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


Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_chatmemberhandler.py
Expand Up @@ -22,7 +22,7 @@
from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE
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

RT = TypeVar("RT")
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_choseninlineresulthandler.py
Expand Up @@ -23,7 +23,7 @@
from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE
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

RT = TypeVar("RT")
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_commandhandler.py
Expand Up @@ -24,7 +24,7 @@
from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import SCT, DVType
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_conversationhandler.py
Expand Up @@ -41,10 +41,10 @@
from telegram._utils.types import DVType
from telegram._utils.warnings import warn
from telegram.ext._application import ApplicationHandlerStop
from telegram.ext._basehandler import BaseHandler
from telegram.ext._callbackqueryhandler import CallbackQueryHandler
from telegram.ext._choseninlineresulthandler import ChosenInlineResultHandler
from telegram.ext._extbot import ExtBot
from telegram.ext._handler import BaseHandler
from telegram.ext._inlinequeryhandler import InlineQueryHandler
from telegram.ext._stringcommandhandler import StringCommandHandler
from telegram.ext._stringregexhandler import StringRegexHandler
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_inlinequeryhandler.py
Expand Up @@ -23,7 +23,7 @@
from telegram import Update
from telegram._utils.defaultvalue import DEFAULT_TRUE
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_messagehandler.py
Expand Up @@ -23,7 +23,7 @@
from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import DVType
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_pollanswerhandler.py
Expand Up @@ -20,7 +20,7 @@


from telegram import Update
from telegram.ext._handler import BaseHandler
from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT


Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_pollhandler.py
Expand Up @@ -20,7 +20,7 @@


from telegram import Update
from telegram.ext._handler import BaseHandler
from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT


Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_precheckoutqueryhandler.py
Expand Up @@ -20,7 +20,7 @@


from telegram import Update
from telegram.ext._handler import BaseHandler
from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT


Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_prefixhandler.py
Expand Up @@ -24,7 +24,7 @@
from telegram._utils.defaultvalue import DEFAULT_TRUE
from telegram._utils.types import SCT, DVType
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_shippingqueryhandler.py
Expand Up @@ -20,7 +20,7 @@


from telegram import Update
from telegram.ext._handler import BaseHandler
from telegram.ext._basehandler import BaseHandler
from telegram.ext._utils.types import CCT


Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_stringcommandhandler.py
Expand Up @@ -22,7 +22,7 @@

from telegram._utils.defaultvalue import DEFAULT_TRUE
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_stringregexhandler.py
Expand Up @@ -23,7 +23,7 @@

from telegram._utils.defaultvalue import DEFAULT_TRUE
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

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_typehandler.py
Expand Up @@ -22,7 +22,7 @@

from telegram._utils.defaultvalue import DEFAULT_TRUE
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

RT = TypeVar("RT")
Expand Down
Expand Up @@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser Public License
# 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


Expand Down