Skip to content

Commit

Permalink
allow multiple values in company enrichment (#160)
Browse files Browse the repository at this point in the history
* allow multiple values in ce

* updates
  • Loading branch information
vvillait88 authored Oct 22, 2024
1 parent 054e24a commit fa2cd09
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "peopledatalabs"
version = "4.1.1"
version = "4.1.2"
description = "Official Python client for the People Data Labs API"
homepage = "https://www.peopledatalabs.com"
repository = "https://github.com/peopledatalabs/peopledatalabs-python"
Expand Down
2 changes: 1 addition & 1 deletion src/peopledatalabs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
from .main import PDLPY


__version__ = "4.1.1"
__version__ = "4.1.2"

__all__ = ["PDLPY"]
18 changes: 9 additions & 9 deletions src/peopledatalabs/models/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ class CompanyBaseModel(BaseModel):
Base parameters model for the enrichment API.
"""

country: Optional[str]
locality: Optional[str]
country: Optional[Union[str, List[str]]]
locality: Optional[Union[str, List[str]]]
location: Optional[Union[List[str], str]]
name: Optional[str]
name: Optional[Union[str, List[str]]]
pdl_id: Optional[str]
postal_code: Optional[str]
profile: Optional[str]
region: Optional[str]
street_address: Optional[str]
ticker: Optional[str]
website: Optional[str]
postal_code: Optional[Union[str, List[str]]]
profile: Optional[Union[str, List[str]]]
region: Optional[Union[str, List[str]]]
street_address: Optional[Union[str, List[str]]]
ticker: Optional[Union[str, List[str]]]
website: Optional[Union[str, List[str]]]

@root_validator(pre=True)
def non_ambiguous(cls, v):
Expand Down
2 changes: 1 addition & 1 deletion tests/client/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_version():
"""
Version check.
"""
assert __version__ == "4.1.1"
assert __version__ == "4.1.2"


@pytest.mark.usefixtures("fake_api_key")
Expand Down

0 comments on commit fa2cd09

Please sign in to comment.