mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
check that floats and complex numbers are detected as literals
This commit is contained in:
@@ -2003,6 +2003,8 @@ definition_after_normal_text : int
|
||||
def test_token_type(self):
|
||||
tokens = (
|
||||
("1", "literal"),
|
||||
("-4.6", "literal"),
|
||||
("2j", "literal"),
|
||||
("'string'", "literal"),
|
||||
('"another_string"', "literal"),
|
||||
("{1, 2}", "literal"),
|
||||
|
Reference in New Issue
Block a user