mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Fix some CAPI annotations (#13081)
This commit is contained in:
@@ -2,7 +2,7 @@ import sys
|
||||
from abc import abstractmethod
|
||||
from time import struct_time
|
||||
from typing import ClassVar, Final, NoReturn, SupportsIndex, final, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias, deprecated
|
||||
from typing_extensions import CapsuleType, Self, TypeAlias, deprecated
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
__all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo", "MINYEAR", "MAXYEAR", "UTC")
|
||||
@@ -332,3 +332,5 @@ class datetime(date):
|
||||
def __sub__(self, value: Self, /) -> timedelta: ...
|
||||
@overload
|
||||
def __sub__(self, value: timedelta, /) -> Self: ...
|
||||
|
||||
datetime_CAPI: CapsuleType
|
||||
|
||||
Reference in New Issue
Block a user