Skip to content

Commit

Permalink
Reformat for black==24.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
josiah-wolf-oberholtzer committed Feb 14, 2024
1 parent 0dafa78 commit 4328e72
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions uqbar/apis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tools for auto-generating API documention.
"""

import importlib
import pathlib

Expand Down
12 changes: 6 additions & 6 deletions uqbar/apis/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,18 +399,18 @@ def _build_mappings(
class_stack.append(base)
parents_to_children.setdefault(base, set()).add(class_)
children_to_parents.setdefault(class_, set()).add(base)
sorted_parents_to_children: MutableMapping[
type, List[type]
] = collections.OrderedDict()
sorted_parents_to_children: MutableMapping[type, List[type]] = (
collections.OrderedDict()
)
for parent, children in sorted(
parents_to_children.items(), key=lambda x: (x[0].__module__, x[0].__name__)
):
sorted_parents_to_children[parent] = sorted(
children, key=lambda x: (x.__module__, x.__name__)
)
sorted_children_to_parents: MutableMapping[
type, List[type]
] = collections.OrderedDict()
sorted_children_to_parents: MutableMapping[type, List[type]] = (
collections.OrderedDict()
)
for child, parents in sorted(
children_to_parents.items(), key=lambda x: (x[0].__module__, x[0].__name__)
):
Expand Down
1 change: 1 addition & 0 deletions uqbar/sphinx/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
``uqbar_api_source_paths`` in the directory ``uqbar_api_directory_name``
relative to your Sphinx source directory.
"""

import importlib
import pathlib
import types
Expand Down
1 change: 1 addition & 0 deletions uqbar/sphinx/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
block suites
"""

import importlib
from typing import Any, Dict

Expand Down
1 change: 1 addition & 0 deletions uqbar/sphinx/inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
:lineage: path.three path.four path.five
"""

import math
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions uqbar/sphinx/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Install by adding ``'uqbar.sphinx.style'`` to the ``extensions`` list in your
Sphinx configuration.
"""

import importlib
import inspect
import pathlib
Expand Down

0 comments on commit 4328e72

Please sign in to comment.