Content-Length: 294545 | pFad | http://github.com/interactions-py/interactions.py/pull/1649/files

CD fix: Fix import errors introduced in CronTrigger feature by silasary · Pull Request #1649 · interactions-py/interactions.py · GitHub
Skip to content

fix: Fix import errors introduced in CronTrigger feature #1649

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

Merged
merged 1 commit into from
Apr 3, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions interactions/models/internal/tasks/triggers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import typing
from abc import ABC, abstractmethod
from datetime import datetime, timedelta, timezone, _TzInfo
from datetime import datetime, timedelta, timezone

if typing.TYPE_CHECKING:
from datetime import _TzInfo

from croniter import croniter

Expand Down Expand Up @@ -154,7 +158,7 @@ class CronTrigger(BaseTrigger):

"""

def __init__(self, cron: str, tz: _TzInfo = timezone.utc) -> None:
def __init__(self, cron: str, tz: "_TzInfo" = timezone.utc) -> None:
self.cron = cron
self.tz = tz

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
aiohttp
attrs>=22.1
croniter
discord-typings>=0.5.1
emoji
tomli








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/interactions-py/interactions.py/pull/1649/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy