Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Nov 1, 2023
1 parent a876f49 commit a6661e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -484,4 +484,4 @@ known-third-party=enchant

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception".
overgeneral-exceptions=Exception
overgeneral-exceptions=builtins.Exception
3 changes: 2 additions & 1 deletion jishaku/features/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ async def table_summary(self, table_query: typing.Optional[str]) -> typing.Dict[


try:
import asqlite # type: ignore
import sqlite3

import asqlite # type: ignore
except ImportError:
pass
else:
Expand Down
2 changes: 1 addition & 1 deletion jishaku/repl/inspections.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def content_type_inspection(obj: typing.Sized):
total = len(obj) # type: ignore
types = collections.Counter(type(x) for x in obj) # type: ignore

output = ', '.join(f'{x.__name__} ({y*100/total:.1f}\uFF05)' for x, y in types.most_common(3))
output = ', '.join(f'{x.__name__} ({y * 100 / total:.1f}\uFF05)' for x, y in types.most_common(3))
if len(types) > 3:
output += ', ...'

Expand Down

0 comments on commit a6661e2

Please sign in to comment.