forked from pool/python-fire
* Support for custom serializers with fire.Fire(serializer=your_serializer)
* Auto-generated help text now shows short arguments (e.g. -a) when
appropriate
* Default values are now shown in help for kwonly arguments
* Completion script fix where previously completions might not show at all
- Refresh python-fire-no-mock.patch
- Add patch support-python-311.patch:
* Support Python 3.11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=23
15 lines
400 B
Diff
15 lines
400 B
Diff
Index: fire-0.5.0/fire/test_components_py3.py
|
|
===================================================================
|
|
--- fire-0.5.0.orig/fire/test_components_py3.py
|
|
+++ fire-0.5.0/fire/test_components_py3.py
|
|
@@ -57,8 +57,7 @@ def lru_cache_decorated(arg1):
|
|
|
|
class WithAsyncio(object):
|
|
|
|
- @asyncio.coroutine
|
|
- def double(self, count=0):
|
|
+ async def double(self, count=0):
|
|
return 2 * count
|
|
|
|
|