From be58cfb7e0d5ea1d08cde0a6847a47fd0e56b7f8 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 6 Nov 2024 11:13:21 +0100 Subject: [PATCH] Update pyRFC3339 to 2.0.1 --- stubs/pyRFC3339/METADATA.toml | 2 +- stubs/pyRFC3339/pyrfc3339/__init__.pyi | 2 ++ stubs/pyRFC3339/pyrfc3339/utils.pyi | 14 +------------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/stubs/pyRFC3339/METADATA.toml b/stubs/pyRFC3339/METADATA.toml index e182e92b75a4..223bbf392a5b 100644 --- a/stubs/pyRFC3339/METADATA.toml +++ b/stubs/pyRFC3339/METADATA.toml @@ -1,2 +1,2 @@ -version = "1.1" +version = "~=2.0.1" upstream_repository = "https://github.com/kurtraschke/pyRFC3339" diff --git a/stubs/pyRFC3339/pyrfc3339/__init__.pyi b/stubs/pyRFC3339/pyrfc3339/__init__.pyi index d8c1ca5e88c7..759d02593681 100644 --- a/stubs/pyRFC3339/pyrfc3339/__init__.pyi +++ b/stubs/pyRFC3339/pyrfc3339/__init__.pyi @@ -1,2 +1,4 @@ from .generator import generate as generate from .parser import parse as parse + +__all__ = ["generate", "parse"] diff --git a/stubs/pyRFC3339/pyrfc3339/utils.pyi b/stubs/pyRFC3339/pyrfc3339/utils.pyi index 492d3c221546..650a438c3cb9 100644 --- a/stubs/pyRFC3339/pyrfc3339/utils.pyi +++ b/stubs/pyRFC3339/pyrfc3339/utils.pyi @@ -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: ...