X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1e557184b0a9f43bfbff862669966bc5328517e9..fa6caa6ca8489103d22d23f8f4ae4d3569bb115e:/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