Skip to content

Commit

Permalink
Fix Python 3.7 incompatibility.
Browse files Browse the repository at this point in the history
I also added flake8 and pylint to the dev requirements.
  • Loading branch information
mkleehammer committed Aug 25, 2023
1 parent 96a48a8 commit f2f5125
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 101 deletions.
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ ignore =
E221,
# multi spaces before op - I line up assignments often
E401,
# multiple imports on one line
# multiple imports on one line
E722,
# ignore bare except in tests
6 changes: 6 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@

setuptools ~= 67.7
pytest ~= 7.3

# I'm going to try leaving the versions off since we're supporting drastically different Python
# versions. I want the most up to date I can get in each, at least until one of them makes a
# backwards incompatible change.
flake8
pylint
2 changes: 1 addition & 1 deletion tests/mysql_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def test_emoticons_as_literal(cursor):
assert result == v


@lru_cache
@lru_cache()
def _generate_str(length, encoding=None):
"""
Returns either a string or bytes, depending on whether encoding is provided,
Expand Down
Loading

0 comments on commit f2f5125

Please sign in to comment.