Skip to content

Commit 65dadac

Browse files
author
Kevin Kirsche
authored
Add some missing stubs in datetimerange (#8470)
1 parent 57179d4 commit 65dadac

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

stubs/DateTimeRange/datetimerange/__init__.pyi

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ from typing import ClassVar
55

66
from dateutil.relativedelta import relativedelta
77

8-
__license__: str
9-
__email__: str
8+
from .__version__ import (
9+
__author__ as __author__,
10+
__copyright__ as __copyright__,
11+
__email__ as __email__,
12+
__license__ as __license__,
13+
__version__ as __version__,
14+
)
1015

1116
class DateTimeRange:
1217
NOT_A_TIME_STR: ClassVar[str]
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
__maintainer__: str
2-
__email__: str
1+
__author__: str = ...
2+
__copyright__: str
33
__license__: str
4+
__version__: str
5+
__maintainer__ = __author__
6+
__email__: str

0 commit comments

Comments
 (0)