We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41529d3 commit cebaa9fCopy full SHA for cebaa9f
CHANGELOG.txt
@@ -1,6 +1,11 @@
1
Changelog
2
=========
3
4
+v1.12.2 (2025-04-09)
5
+--------------------
6
+
7
+- Un-deprecated first, we actually use it with frozenset that have no pop.
8
9
v1.12.1 (2025-04-09)
10
--------------------
11
src/liblet/utils.py
@@ -22,8 +22,7 @@ def warn(msg):
22
23
24
def first(s):
25
- """Deprecated. Use set.pop"""
26
- deprecation_warning('The function "first" is now deprecated, please use "pop" instead')
+ """Returns the first element of the iterable or `None` if empty."""
27
return next(iter(s)) if s else None
28
29
0 commit comments