Add abstract methods to BaseTzInfo (#6579)

While these abstract methods don't exist at runtime, all sub-classes of
BaseTzInfo implement them. It can be useful to annotate variables with
BaseTzInfo and being able to call these methods on it.
This commit is contained in:
Sebastian Rittau
2021-12-14 14:14:21 +01:00
committed by GitHub
parent f3026dc3ab
commit 968fd6d01d
2 changed files with 18 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# "Abstract" methods, see the .pyi file for more details.
pytz.BaseTzInfo.localize
pytz.BaseTzInfo.normalize
pytz.tzinfo.BaseTzInfo.localize
pytz.tzinfo.BaseTzInfo.normalize