Skip to content

Commit

Permalink
Note that Locale.parse() does not accept None
Browse files Browse the repository at this point in the history
Refs #977
  • Loading branch information
akx committed Mar 1, 2023
1 parent 56071c9 commit 11bee0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -18,6 +18,7 @@ Deprecations & breaking changes

* Python 3.6 is no longer supported (:gh:`919`) - Aarni Koskela
* The `get_next_timezone_transition` function is no more (:gh:`958`) - Aarni Koskela
* `Locale.parse()` no longer accepts `None` as an argument (:gh:`966`)

New features
~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion babel/core.py
Expand Up @@ -263,7 +263,7 @@ def negotiate(
@classmethod
def parse(
cls,
identifier: str | Locale | None,
identifier: str | Locale,
sep: str = '_',
resolve_likely_subtags: bool = True,
) -> Locale:
Expand Down

0 comments on commit 11bee0a

Please sign in to comment.