graphql-python / graphene

GraphQL framework for Python
http://graphene-python.org/
MIT License
8.1k stars 828 forks source link

bump mypy to 1.10 #1570

Closed dulmandakh closed 2 months ago

dulmandakh commented 4 months ago

This PR bumps mypy, and fixes below error.

graphene/utils/deprecated.py:30: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
graphene/utils/deprecated.py:32: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
dulmandakh commented 4 months ago

@erikwrede please review and merge 🙏

erikwrede commented 2 months ago

thank you, incorporated and superseded by #1578