Skip to content

Commit

Permalink
feat: add src/netius/base/log.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes committed Dec 27, 2023
1 parent 54925b0 commit e70b35b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/netius/base/log.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from logging.handlers import RotatingFileHandler, SMTPHandler

SILENT: int

def rotating_handler(
path: str = ...,
max_bytes: int = ...,
max_log: int = ...,
encoding: str | None = ...,
delay: bool = ...
) -> RotatingFileHandler: ...
def smtp_handler(
host: str = ...,
port: int = ...,
sender: str = ...,
receivers: list[str] = [],
subject: str = ...,
username: str | None = ...,
password: str | None = ...,
stls: bool = ...
) -> SMTPHandler: ...
def in_signature(
callable: object,
name: str
) -> bool: ...

0 comments on commit e70b35b

Please sign in to comment.