We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee0acc commit 16fb89aCopy full SHA for 16fb89a
1 file changed
src/tmuxp/_compat.py
@@ -11,7 +11,22 @@
11
12
13
def _identity(x: object) -> object:
14
- """Return *x* unchanged — used as a no-op decorator."""
+ """Return *x* unchanged — used as a no-op decorator.
15
+
16
+ Examples
17
+ --------
18
+ >>> from tmuxp._compat import _identity
19
20
+ Strings pass through unchanged:
21
22
+ >>> _identity("hello")
23
+ 'hello'
24
25
+ Integers pass through unchanged:
26
27
+ >>> _identity(42)
28
+ 42
29
+ """
30
return x
31
32
0 commit comments