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 types to the public API #244

Merged
merged 4 commits into from
Feb 4, 2022

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented Feb 4, 2022

Resolves #189

@hangtwenty indicated such a PR would be welcome :-)

Copy link
Owner

@john-kurkowski john-kurkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ❤️ types. Thank you!

"""namedtuple of a URL's subdomain, domain, and suffix."""

# Necessary for __dict__ member to get populated in Python 3+
__slots__ = ()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for deleting! 🙌 This workaround has been obsolete for a long time. See #70 (comment).

@john-kurkowski john-kurkowski merged commit 40205f6 into john-kurkowski:master Feb 4, 2022
@hauntsaninja hauntsaninja deleted the typing branch February 5, 2022 00:11
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 16, 2022
https://build.opensuse.org/request/show/982862
by user mia + dimstar_suse
- Update to 3.3.0
Features
  * Add CLI flag `--suffix_list_url` to set the suffix list URL(s)
    or source file(s)
    (#gh/john-kurkowski/tldextract#197)
  * Add CLI flag `--no_fallback_to_snapshot` to not fall back to
    the snapshot
    (#gh/john-kurkowski/tldextract#260)
  * Add alias `--include_psl_private_domains` for CLI flag
    `--private_domains`
Bugfixes
  * Handle more internationalized domain name dots
    (#gh/john-kurkowski/tldextract#253)
Misc.
  * Update bundled snapshot
  * Add basic CLI test coverage
Changes in 3.2.1:
Bugfixes
  * Fix incorrect namespace used for caching function returns
    (#gh/john-kurkowski/tldextract#258)
Changes in 3.2.0:
Features
  * Add types to the public API
    (#gh/john-kurkowski/tldextract#244)
Bugfixes
    * Add support for Python 3.10, dr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type Stubs
2 participants