5.0.0
What's Changed
- Breaking Changes
- Migrate
ExtractResult
fromnamedtuple
todataclass
(#306)-
This means no more iterating/indexing/slicing/unpacking the result
object returned by this library. It is no longer a tuple. You must
directly reference the fields you're interested in.For example, the
following will no longer work.tldextract.extract("example.com")[1:3] # TypeError: 'ExtractResult' object is not subscriptable
Instead, use the following.
ext = tldextract.extract("example.com") (ext.domain, ext.suffix)
-
- Migrate
- Bugfixes
- Drop support for EOL Python 3.7
- Misc.
- Switch from pycodestyle and Pylint to Ruff (#304)
- Consolidate config files
- Type tests
- Require docstrings in tests
- Remove obsolete tests
Contributors
Full Changelog: 4.0.0...5.0.0