Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Dec 12, 2024
1 parent 2fb0067 commit 8799090
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/test_pytypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ enum Color { RED = 0, BLUE = 1 };

typedef py::typing::Literal<26,
0x1A,
py::typing::StringLiteral("\"hello world\""),
py::typing::StringLiteral("b\"hello world\""),
py::typing::StringLiteral("u\"hello world\""),
"\"hello world\"",
"b\"hello world\"",
"u\"hello world\"",
true,
py::typing::StringLiteral("Color.RED"),
py::typing::StringLiteral("None")>
"Color.RED",
"None">
LiteralFoo;
} // namespace literals
namespace typevar {
typedef py::typing::TypeVar<"T"> TypeVarT;
typedef py::typing::TypeVar<py::typing::StringLiteral("V")> TypeVarV;
typedef py::typing::TypeVar<"V"> TypeVarV;
} // namespace typevar
#endif

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ def test_literal(doc):
def test_complete_literal(doc):
assert (
doc(m.annotate_complete_literal)
== 'annotate_literal(arg0: Literal[26, 20 "hello world", b"hello world", u"hello world", True, Color.RED, None]) -> object'
== 'annotate_complete_literal(arg0: Literal[26, 20, "hello world", b"hello world", u"hello world", True, Color.RED, None]) -> object'
)


Expand Down

0 comments on commit 8799090

Please sign in to comment.