Skip to content

Commit

Permalink
Update pyRFC3339 to 2.0.1 (#12960)
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored Nov 6, 2024
1 parent 6c3a534 commit 8dd4371
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
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: ...

0 comments on commit 8dd4371

Please sign in to comment.