mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user