Skip to content

Commit cebaa9f

Browse files
committed
Minor fix
1 parent 41529d3 commit cebaa9f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
v1.12.2 (2025-04-09)
5+
--------------------
6+
7+
- Un-deprecated first, we actually use it with frozenset that have no pop.
8+
49
v1.12.1 (2025-04-09)
510
--------------------
611

src/liblet/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def warn(msg):
2222

2323

2424
def first(s):
25-
"""Deprecated. Use set.pop"""
26-
deprecation_warning('The function "first" is now deprecated, please use "pop" instead')
25+
"""Returns the first element of the iterable or `None` if empty."""
2726
return next(iter(s)) if s else None
2827

2928

0 commit comments

Comments
 (0)