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. π οΈ
- Host: GitHub
- URL: https://github.com/d3cryptofc/rynt
- Owner: d3cryptofc
- License: mit
- Created: 2024-12-26T23:47:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-27T11:08:15.000Z (5 months ago)
- Last Synced: 2024-12-27T11:28:10.934Z (5 months ago)
- Topics: code-formatter, code-formatting, mypy, pyright, python, rynt, type-hints, typing
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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
+
```