Skip to content

Commit

Permalink
Merge pull request #13 from unmade/release-0.1.0-beta.3
Browse files Browse the repository at this point in the history
Release 0.1.0-beta.3
  • Loading branch information
unmade authored May 25, 2019
2 parents dfcf3af + fb81b83 commit 8e174f0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
Changelog
=========

v0.1.0-beta.3 (2019-05-25)
--------------------------

* Add `--async` flag to mark methods with `async` prefix
* Add `-o` shortcut for `--output` option
* Refactor codebase

v0.1.0-beta.2 (2019-05-23)
--------------------------

* Update badges link

v0.1.0-beta.1 (2019-05-23)
-----------------
--------------------------

* First release on PyPI.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Overview
.. end-badges
This is simple `.pyi` stubs generator from thrift interfaces.
Motivation for this project was to have autocomplete and type checking
Motivation for this project is to have autocomplete and type checking
for dynamically loaded thrift interfaces

Installation
Expand Down
3 changes: 2 additions & 1 deletion example/app/interfaces/todo.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ class TodoItem:
created: dates.DateTime
is_deleted: bool
picture: Optional[str] = None
is_favorite: bool = False

class Todo:
def create(self, text: str, type: int) -> int: ...
def update(self, id: int, text: str, type: int) -> None: ...
def update(self, item: TodoItem) -> None: ...
def get(self, id: int) -> TodoItem: ...
def all(self, pager: shared.LimitOffset) -> List[TodoItem]: ...
def filter(self, ids: List[int]) -> List[TodoItem]: ...
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "thrift-pyi"
version = "0.1.0-beta.2"
version = "0.1.0-beta.3"
description = "This is simple `.pyi` stubs generator from thrift interfaces"
readme = "README.rst"
repository = "https://github.com/unmade/thrift-pyi"
Expand Down
2 changes: 1 addition & 1 deletion src/thriftpyi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@click.command()
@click.argument("interfaces_dir", type=click.Path(exists=True))
@click.option("--output", help="Directory where to save generated `.pyi` files")
@click.option("--output", "-o", help="Directory where to save generated `.pyi` files")
@click.option(
"--async",
"is_async",
Expand Down

0 comments on commit 8e174f0

Please sign in to comment.