Skip to content

Commit 58d596e

Browse files
committed
Add return annotation and docstring to version_callback
1 parent 1cbe457 commit 58d596e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

formate/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
__all__ = ("main", "version_callback")
4242

4343

44-
def version_callback(ctx: click.Context, param: click.Option, value: int):
44+
def version_callback(ctx: click.Context, param: click.Option, value: int) -> None:
45+
"""
46+
Callback for displaying the package version (and optionally the Python runtime).
47+
"""
48+
4549
# this package
4650
import formate
4751

0 commit comments

Comments
 (0)