Skip to content

Commit

Permalink
Fix codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed Feb 5, 2024
1 parent cb7e7b6 commit 4a44031
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Spoffy

[![CircleCI](https://circleci.com/gh/steinitzu/spoffy/tree/master.svg?style=svg)](https://circleci.com/gh/steinitzu/spoffy/tree/master)
[![Documentation Status](https://readthedocs.org/projects/spoffy/badge/?version=latest&style=flat-square)](https://spoffy.readthedocs.io/en/latest/?badge=latest)


Expand All @@ -14,7 +13,7 @@ Read the docs: https://spoffy.readthedocs.io
```
pip install spoffy
```
Python3.6 and newer are supported
Python3.9 and newer are supported



4 changes: 2 additions & 2 deletions codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def signature_to_keywords(method):


def build_method_def(
method: ast.FunctionDef
method: ast.FunctionDef,
) -> Tuple[ast.FunctionDef, ast.AsyncFunctionDef]:
orig = method
method = deepcopy(method)
Expand Down Expand Up @@ -241,6 +241,6 @@ def build_classes():
out_body += classes
out_tree = ast.Module(out_body)
source = to_source(out_tree)
source = black.format_str(source, line_length=79)
source = black.format_str(source, mode=black.Mode(line_length=79))
output_file.write(source)
print(source)
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sphinx-autodoc-typehints = "^1.6"
sphinx_rtd_theme = "^0.4.3"
aiohttp = "^3.9"
requests = "^2.21"
astor = "^0.7.1"
astor = "^0.8"
pytest-asyncio = "^0.23.4"
sphinxcontrib-asyncio = "^0.2.0"

Expand Down

0 comments on commit 4a44031

Please sign in to comment.