diff options
Diffstat (limited to 'typings/qrcode/__init__.py')
-rw-r--r-- | typings/qrcode/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/typings/qrcode/__init__.py b/typings/qrcode/__init__.py index e4289335a..0ead135ee 100644 --- a/typings/qrcode/__init__.py +++ b/typings/qrcode/__init__.py @@ -2,13 +2,12 @@ from __future__ import annotations from typing import Any -from typing import Optional from . import constants as constants class QRCode: - def __init__(self, version: Optional[int], error_correction: int, box_size: int, border: int, image_factory: Optional[Any] = None, mask_pattern: Optional[Any] = None) -> None: ... + def __init__(self, version: int | None, error_correction: int, box_size: int, border: int, image_factory: Any = None, mask_pattern: Any = None) -> None: ... def add_data(self, data: str) -> None: ... def make(self, fit: bool) -> None: ... - def make_image(self, image_factory: Optional[Any] = None, fill_color: str, back_color: str) -> Any: ... + def make_image(self, image_factory: Any = None, **kwargs: Any) -> Any: ... |