Skip to content

Commit

Permalink
version bump for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetrucciani committed Apr 24, 2019
1 parent bbd881e commit 906ae84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions hubspot3/companies.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ def get_recently_modified(self, **options) -> Optional[List]:
def get_recently_created(self, **options) -> Optional[List]:
return self._get_recent("created", **options)

def get_contacts_at_a_company(
self, company_id, **options
) -> Optional[List]:
def get_contacts_at_a_company(self, company_id: str, **options) -> Optional[List]:
"""
Returns all of the contacts who have an associatedcompanyid contact property of
`company_id`.
Expand Down
2 changes: 1 addition & 1 deletion hubspot3/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""


__version__ = "3.2.5"
__version__ = "3.2.6"


BASE_URL = "https://api.hubapi.com"
9 changes: 5 additions & 4 deletions hubspot3/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
from hubspot3.base import BaseClient
from hubspot3.error import HubspotError
from typing import Dict


SETTINGS_API_VERSION = "v1"
Expand All @@ -15,20 +16,20 @@ class SettingsClient(BaseClient):
:see: http://docs.hubapi.com/wiki/Settings_API
"""

def _get_path(self, subpath):
def _get_path(self, subpath: str) -> str:
"""get the full api url for the given subpath on this client"""
return "settings/{}/{}".format(SETTINGS_API_VERSION, subpath)

def get_settings(self, **options):
"""Returns the settings we know about for this API key."""
return self._call("settings", **options)

def get_setting(self, name, **options):
def get_setting(self, name: str, **options):
"""Returns the specific requested setting name, if found."""
params = {"name": name}
return self._call("settings", params=params, **options)

def update_setting(self, data, **options):
def update_setting(self, data: Dict, **options):
"""Updates a specific setting for this API key."""
params = {}
if data["name"]:
Expand All @@ -40,7 +41,7 @@ def update_setting(self, data, **options):
"settings", params=params, data=data, method="POST", **options
)

def delete_setting(self, name, **options):
def delete_setting(self, name: str, **options):
"""Deletes a specific setting by emptying out its value."""
params = {}
if name:
Expand Down

0 comments on commit 906ae84

Please sign in to comment.