From 128f68536554efb4ef899ccfc798019fdd6ef381 Mon Sep 17 00:00:00 2001 From: Carl Oscar Aaro Date: Tue, 12 Jun 2018 13:32:24 +0200 Subject: [PATCH] Added type hinting stubs --- tomodachi/__init__.pyi | 15 +++++++++++++++ tomodachi/py.typed | 1 + 2 files changed, 16 insertions(+) create mode 100644 tomodachi/__init__.pyi create mode 100644 tomodachi/py.typed diff --git a/tomodachi/__init__.pyi b/tomodachi/__init__.pyi new file mode 100644 index 000000000..05811219e --- /dev/null +++ b/tomodachi/__init__.pyi @@ -0,0 +1,15 @@ +from tomodachi.__version__ import __version__ as __version__, __version_info__ as __version_info__ +from tomodachi.transport.amqp import amqp as amqp, amqp_publish as amqp_publish +from tomodachi.transport.aws_sns_sqs import aws_sns_sqs as aws_sns_sqs, aws_sns_sqs_publish as aws_sns_sqs_publish +from tomodachi.transport.http import HttpException as HttpException, Response as HttpResponse, http as http, http_error as http_error, http_static as http_static, websocket as websocket +from tomodachi.transport.schedule import daily as daily, heartbeat as heartbeat, hourly as hourly, minutely as minutely, monthly as monthly, schedule as schedule +from typing import Any + +CLASS_ATTRIBUTE: str = ... + +def service(cls: Any) -> Any: ... + +class Service: + TOMODACHI_SERVICE_CLASS: bool = ... + log: Any = ... + log_setup: Any = ... diff --git a/tomodachi/py.typed b/tomodachi/py.typed new file mode 100644 index 000000000..342ea76ea --- /dev/null +++ b/tomodachi/py.typed @@ -0,0 +1 @@ +PEP-561 marker.