Update black

This commit is contained in:
Tulir Asokan 2023-02-05 23:09:07 +02:00
parent 41cbf6d788
commit 955fb2723e
2 changed files with 5 additions and 2 deletions

View File

@ -8,13 +8,13 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.1.0
hooks:
- id: black
language_version: python3
files: ^maubot/.*\.pyi?$
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
files: ^maubot/.*\.pyi?$

View File

@ -323,6 +323,7 @@ _zip_searchorder = (
(".py", False, False),
)
# Given a module name, return the potential file path in the
# archive (without extension).
def _get_module_path(self, fullname):
@ -351,6 +352,7 @@ def _get_module_info(self, fullname):
# implementation
# _read_directory(archive) -> files dict (new reference)
#
# Given a path to a Zip archive, build a dict, mapping file names
@ -524,6 +526,7 @@ cp437_table = (
_importing_zlib = False
# Return the zlib.decompress function object, or NULL if zlib couldn't
# be imported. The function is cached when found, so subsequent calls
# don't import zlib again.