Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add allowed types #277

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions geolink_formatter/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ def __init__(self, files, id=None, category=None, doctype=None, federal_level=No

Args:
files (list[geolink_formatter.entity.File]): The files contained by the document.
id (str): The document identifier.
category (str): The document category.
doctype (str): The internal type of the document.
federal_level (str): The federal level of the document.
authority (str): The name of the authority responsible for the document.
authority_url (str): The URL of the authority's website.
title (str): The document title.
number (str): The document number.
abbreviation (str): The document abbreviation.
instance (str): The document's instance.
type (str): The official type of the document.
subtype (str): The subtype of the document.
decree_date (datetime.date): The date of decree.
enactment_date (datetime.date): The date of enactment.
abrogation_date (datetime.date): The date of abrogation.
cycle (str): The document cycle.
municipality (str): The municipality concerned by this document.
index (int): The document's index for sorting.
status (str): The status of the prebublication.
status_start_date (datetime.date): Start date of the status.
status_end_date (datetime.date): End date of the status.
id (str or None): The document identifier.
category (str or None): The document category.
doctype (str or None): The internal type of the document.
federal_level (str or None): The federal level of the document.
authority (str or None): The name of the authority responsible for the document.
authority_url (str or None): The URL of the authority's website.
title (str or None): The document title.
number (str or None): The document number.
abbreviation (str or None): The document abbreviation.
instance (str or None): The document's instance.
type (str or None): The official type of the document.
subtype (str or None): The subtype of the document.
decree_date (datetime.date or None): The date of decree.
enactment_date (datetime.date or None): The date of enactment.
abrogation_date (datetime.date or None): The date of abrogation.
cycle (str or None): The document cycle.
municipality (str or None): The municipality concerned by this document.
index (int or None): The document's index for sorting.
status (str or None): The status of the prebublication.
status_start_date (datetime.date or None): Start date of the status.
status_end_date (datetime.date or None): End date of the status.

Raises:
TypeError: Raised on missing argument or invalid argument type.
Expand Down Expand Up @@ -226,10 +226,10 @@ def __init__(self, category=None, href=None, title=None, description=None):
"""Creates a new file instance.

Args:
category (str): The file's category.
href (str): The URL to access the file.
title (str): The file's title.
description (str): The file's description.
category (str or None): The file's category.
href (str or None): The URL to access the file.
title (str or None): The file's title.
description (str or None): The file's description.

"""

Expand Down
Loading