Skip to content

Commit d6ab120

Browse files
committed
Add py.typed to package
1 parent 0100fe5 commit d6ab120

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
=== 1.1.0 ===
2+
3+
Add package as py.typed
4+
15
=== 1.0.5 ===
26

37
Minor fixes to docs and to the Noko client

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include LICENSE
33
include DESCRIPTION
44
include CHANGELOG.txt
55
include README.md
6+
include py.typed
67
graft freckle_client
78
global-exclude *.orig *.pyc *.log *.swp local_settings.py
89
prune freckle_client/tests/coverage

freckle_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22
"""Freckle client package."""
3-
__version__ = "1.0.5" # pragma: no cover
3+
__version__ = "1.1.0" # pragma: no cover

freckle_client/client.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
import json
99
import warnings
10-
from typing import Callable, List, Optional
10+
from typing import Callable
1111

1212
import requests
1313

@@ -47,10 +47,10 @@ def fetch_json(
4747
self,
4848
uri_path: str,
4949
http_method: str = "GET",
50-
headers: Optional[dict] = None,
51-
query_params: Optional[dict] = None,
52-
post_args: Optional[dict] = None,
53-
) -> Optional[List[dict]]:
50+
headers: dict | None = None,
51+
query_params: dict | None = None,
52+
post_args: dict | None = None,
53+
) -> list[dict] | None:
5454
"""
5555
Fetch some JSON from Noko.
5656
@@ -118,10 +118,10 @@ def fetch_json(
118118
self,
119119
uri_path: str,
120120
http_method: str = "GET",
121-
headers: Optional[dict] = None,
122-
query_params: Optional[dict] = None,
123-
post_args: Optional[dict] = None,
124-
) -> Optional[List[dict]]:
121+
headers: dict | None = None,
122+
query_params: dict | None = None,
123+
post_args: dict | None = None,
124+
) -> list[dict] | None:
125125
"""
126126
Fetch some JSON from Noko.
127127
@@ -165,10 +165,10 @@ def fetch_json(
165165
def _make_request(
166166
http_method: str,
167167
url: str,
168-
headers: Optional[dict] = None,
169-
query_params: Optional[dict] = None,
170-
post_args: Optional[dict] = None,
171-
) -> Optional[List[dict]]:
168+
headers: dict | None = None,
169+
query_params: dict | None = None,
170+
post_args: dict | None = None,
171+
) -> list[dict] | None:
172172
results: list = []
173173
while url:
174174
# perform the HTTP requests, if possible uses OAuth authentication

noko_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22
"""Noko client package."""
3-
__version__ = "1.0.5" # pragma: no cover
3+
__version__ = "1.1.0" # pragma: no cover

py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)