Commit d55a7739 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add missing concrete methods to parse.FixedTzOffset

A fix for datetime stubs marking the tzinfo class as abstract even
though at runtime it's not (although it should rightly be abstract).
parent 2e3af2ad
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
import re
from datetime import datetime
from datetime import timedelta
from datetime import tzinfo
from typing import Any
from typing import Callable
@@ -6,6 +8,7 @@ from typing import Container
from typing import Iterator
from typing import Literal
from typing import Mapping
from typing import Optional
from typing import Sequence
from typing import TypeVar
from typing import overload
@@ -132,6 +135,9 @@ class FixedTzOffset(tzinfo):

	def __init__(self, offset: int, name: str): ...
	def __eq__(self, other: Any) -> bool: ...
	def dst(self, dt: Optional[datetime]) -> timedelta: ...
	def tzname(self, dt: Optional[datetime]) -> str: ...
	def utcoffset(self, dt: Optional[datetime]) -> timedelta: ...


class Parser: