Parameter types do not match when formatting with %. #718
Closed
KINGOFKINGOFKEY
started this conversation in
Documentation
Replies: 1 comment 1 reply
|
Sorry, are you sure you posted this in the right repository 😄? I fail to see how this is relevant to mkdocstrings 🙂 Maybe you just omitted important context? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
name = "Alice"
age = 30
message = "My name is %s and I am %d years old." % (name, age)
plaintext
I'm using the
%operator for string formatting, but I keep getting aTypeErrorwhen the types of the arguments don't match the format specifiers. For example:All reactions