X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1e557184b0a9f43bfbff862669966bc5328517e9..6debce63bc2429b1680f8838592f2e56e3df6b27:/src/black/nodes.py

diff --git a/src/black/nodes.py b/src/black/nodes.py
index 918038f..12f24b9 100644
--- a/src/black/nodes.py
+++ b/src/black/nodes.py
@@ -854,3 +854,7 @@ def is_rpar_token(nl: NL) -> TypeGuard[Leaf]:
 
 def is_string_token(nl: NL) -> TypeGuard[Leaf]:
     return nl.type == token.STRING
+
+
+def is_number_token(nl: NL) -> TypeGuard[Leaf]:
+    return nl.type == token.NUMBER