self.execute(query % params)
Is there a way I can default params to an empty Tuple so that the second parameter is optional?
firstly
and yeah, you can do params: Tuple[str, ...] = ()
fantastic, thanks...and thank you for the mypy info
Don't use that form, you're using old style string formatting. Use the alternative form of that "execute" method
what would you recommend?
Обсуждают сегодня