1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Python 3 annotations, super(), pathlib, etc.

This commit is contained in:
Jakub Roztocil
2019-08-30 11:32:14 +02:00
parent 63df735fef
commit 0f654388fc
23 changed files with 229 additions and 196 deletions

View File

@@ -1,4 +1,4 @@
class BasePlugin(object):
class BasePlugin:
# The name of the plugin, eg. "My auth".
name = None
@@ -75,7 +75,7 @@ class TransportPlugin(BasePlugin):
raise NotImplementedError()
class ConverterPlugin(object):
class ConverterPlugin:
def __init__(self, mime):
self.mime = mime
@@ -88,7 +88,7 @@ class ConverterPlugin(object):
raise NotImplementedError
class FormatterPlugin(object):
class FormatterPlugin:
def __init__(self, **kwargs):
"""

View File

@@ -12,7 +12,7 @@ ENTRY_POINT_NAMES = [
]
class PluginManager(object):
class PluginManager:
def __init__(self):
self._plugins = []