An open API service indexing awesome lists of open source software.

https://github.com/d3cryptofc/rynt

πŸ‡ΊπŸ‡Έ A command-line type hint remover for Python. πŸ› οΈ
https://github.com/d3cryptofc/rynt

code-formatter code-formatting mypy pyright python rynt type-hints typing

Last synced: 3 months ago
JSON representation

πŸ‡ΊπŸ‡Έ A command-line type hint remover for Python. πŸ› οΈ

Awesome Lists containing this project

README

        





Type Hint Remover Tool for Python

For what type hints in production? Avoid unnecessary imports to optimize your code.


```diff
a = 1
-b: int
-c: int = 1
+c = 1


-async def function(a, b: int, c = 1, d: int = 1, *e: int, **f: int) -> int:
+async def function(a, b, c = 1, d = 1, *e, **f):
a = 1
- b: int
- c: int = 1
+ c = 1

if _:
a = 1
- b: int
- c: int = 1
+ c = 1

with _:
a = 1
- b: int
- c: int = 1
-
+ c = 1
+
for _ in __:
a = 1
- b: int
- c: int = 1
+ c = 1

while _:
a = 1
- b: int
- c: int = 1
+ c = 1

class Subclass:
a = 1
- b: int
- c: int = 1
+ c = 1

- def method(self, a, b: int, c = 1, d: int = 1, *e: int, **f: int) -> int:
+ def method(self, a, b, c = 1, d = 1, *e, **f):
a = 1
- b: int
- c: int = 1
+ c = 1
+
```