Change type of backupCount from str to int (#6128)

This commit is contained in:
Đỗ Quốc Vương
2021-10-07 20:31:53 +07:00
committed by GitHub
parent 750d366767
commit 3c58736d01

View File

@@ -46,7 +46,7 @@ class BaseRotatingHandler(FileHandler):
class RotatingFileHandler(BaseRotatingHandler):
maxBytes: str # undocumented
backupCount: str # undocumented
backupCount: int # undocumented
if sys.version_info >= (3, 9):
def __init__(
self,
@@ -73,7 +73,7 @@ class RotatingFileHandler(BaseRotatingHandler):
class TimedRotatingFileHandler(BaseRotatingHandler):
when: str # undocumented
backupCount: str # undocumented
backupCount: int # undocumented
utc: bool # undocumented
atTime: datetime.datetime | None # undocumented
interval: int # undocumented