From 1262d6c2bd392f2f453c73785db1aa87d1d033d8 Mon Sep 17 00:00:00 2001 From: Sergey Petrov Date: Mon, 9 Jan 2017 21:32:58 +0300 Subject: [PATCH] Remove stub files --- apns2/client.pyi | 18 ------------------ apns2/errors.pyi | 1 - apns2/payload.pyi | 26 -------------------------- 3 files changed, 45 deletions(-) delete mode 100644 apns2/client.pyi delete mode 100644 apns2/errors.pyi delete mode 100644 apns2/payload.pyi diff --git a/apns2/client.pyi b/apns2/client.pyi deleted file mode 100644 index 9d585df..0000000 --- a/apns2/client.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from typing import Optional - -from apns2.client import NotificationPriority -from apns2.payload import Payload - - -class APNsClient(object): - def __init__(self, - cert_file: str, - use_sandbox: bool = False, - use_alternative_port: bool = False) -> None: ... - - def send_notification(self, - token_hex: str, - notification: Payload, - priority: NotificationPriority = NotificationPriority.Immediate, - topic: Optional[str] = None, - expiration: Optional[int] = None) -> None: ... diff --git a/apns2/errors.pyi b/apns2/errors.pyi deleted file mode 100644 index 83e08f6..0000000 --- a/apns2/errors.pyi +++ /dev/null @@ -1 +0,0 @@ -def exception_class_for_reason(reason: str) -> type: ... diff --git a/apns2/payload.pyi b/apns2/payload.pyi deleted file mode 100644 index e77e7c2..0000000 --- a/apns2/payload.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from typing import Any, Dict, List, Optional, Union - -class PayloadAlert(object): - def __init__(self, - title: Optional[str] = None, - title_localized_key: Optional[str] = None, - title_localized_args: Optional[List[str]] = None, - body: Optional[str] = None, - body_localized_key: Optional[str] = None, - body_localized_args: Optional[List[str]] = None, - action_localized_key: Optional[str] = None, - launch_image: Optional[str] = None - ) -> None: ... - - def dict(self) -> Dict[str, Any]: ... - -class Payload(object): - def __init__(self, - alert: Union[PayloadAlert, str, None] = None, - badge: Optional[int] = None, - sound: Optional[str] = None, - content_available: Optional[bool] = None, - category: Optional[str] = None, - custom: Optional[Dict[str, Any]] = None) -> None: ... - - def dict(self) -> Dict[str, Any]: ...