Update black requirement from ~=22.10 to ~=23.1 in /python

Updates the requirements on [black](https://github.com/psf/black) to permit the latest version.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.10.0...23.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
pull/380/head
dependabot[bot] 2 years ago committed by Thomas Tanon
parent bd77bce2cd
commit 6dc4aefe99
  1. 4
      python/generate_stubs.py
  2. 3
      python/pyproject.toml
  3. 2
      python/requirements.dev.txt

@ -72,7 +72,7 @@ def module_stubs(module: Any) -> ast.Module:
types_to_import = {"typing"} types_to_import = {"typing"}
classes = [] classes = []
functions = [] functions = []
for (member_name, member_value) in inspect.getmembers(module): for member_name, member_value in inspect.getmembers(module):
element_path = [module.__name__, member_name] element_path = [module.__name__, member_name]
if member_name.startswith("__"): if member_name.startswith("__"):
pass pass
@ -100,7 +100,7 @@ def class_stubs(
attributes: List[ast.AST] = [] attributes: List[ast.AST] = []
methods: List[ast.AST] = [] methods: List[ast.AST] = []
magic_methods: List[ast.AST] = [] magic_methods: List[ast.AST] = []
for (member_name, member_value) in inspect.getmembers(cls_def): for member_name, member_value in inspect.getmembers(cls_def):
current_element_path = element_path + [member_name] current_element_path = element_path + [member_name]
if member_name == "__init__": if member_name == "__init__":
try: try:

@ -28,6 +28,3 @@ Documentation = "https://pyoxigraph.readthedocs.io/"
Homepage = "https://pyoxigraph.readthedocs.io/" Homepage = "https://pyoxigraph.readthedocs.io/"
Source = "https://github.com/oxigraph/oxigraph/tree/main/python" Source = "https://github.com/oxigraph/oxigraph/tree/main/python"
Tracker = "https://github.com/oxigraph/oxigraph/issues" Tracker = "https://github.com/oxigraph/oxigraph/issues"
[tool.black]
target-version = ['py37']

@ -1,4 +1,4 @@
black~=22.10 black~=23.1
furo furo
maturin~=0.14.0 maturin~=0.14.0
mypy~=0.991.0 mypy~=0.991.0

Loading…
Cancel
Save