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

Update pyRFC3339 to 2.0.1 #12960

Merged
merged 1 commit into from
Nov 6, 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
2 changes: 1 addition & 1 deletion stubs/pyRFC3339/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "1.1"
version = "~=2.0.1"
upstream_repository = "https://github.com/kurtraschke/pyRFC3339"
2 changes: 2 additions & 0 deletions stubs/pyRFC3339/pyrfc3339/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from .generator import generate as generate
from .parser import parse as parse

__all__ = ["generate", "parse"]
14 changes: 1 addition & 13 deletions stubs/pyRFC3339/pyrfc3339/utils.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
from datetime import datetime, timedelta, tzinfo
from typing import Any
from typing_extensions import Self

class FixedOffset(tzinfo):
def __init__(self, hours: float, minutes: float) -> None: ...
def dst(self, dt: datetime | None) -> timedelta: ...
def utcoffset(self, dt: datetime | None) -> timedelta: ...
def tzname(self, dt: datetime | None) -> str: ...
def __deepcopy__(self, memo: dict[int, Any]) -> Self: ...

def timedelta_seconds(td: timedelta) -> int: ...
def timezone(utcoffset: float) -> str: ...
def format_timezone(utcoffset: int) -> str: ...