Skip to content

Commit 5435d4d

Browse files
committed
Remove extra GMP class constructors
These extra constructors where just used for documentation purposes.
1 parent 7eb490a commit 5435d4d

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

gvm/protocols/gmp/_gmp224.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class GMPv224(GvmProtocol[T]):
122122

123123
def __init__(self, *args, **kwargs):
124124
"""
125-
Create a new GMPv224 instance.
125+
Create a new GMP protocol instance.
126126
127127
Args:
128128
connection: Connection to use to talk with the remote daemon. See

gvm/protocols/gmp/_gmp225.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,6 @@ class GMPv225(GMPv224[T]):
3030
resp = gmp.get_tasks()
3131
"""
3232

33-
def __init__(self, *args, **kwargs):
34-
"""
35-
Create a new GMPv225 instance.
36-
37-
Args:
38-
connection: Connection to use to talk with the remote daemon. See
39-
:mod:`gvm.connections` for possible connection types.
40-
transform: Optional transform `callable <https://docs.python.org/3/library/functions.html#callable>`_
41-
to convert response data.
42-
After each request the callable gets passed the plain response data
43-
which can be used to check the data and/or conversion into different
44-
representations like a xml dom.
45-
46-
See :mod:`gvm.transforms` for existing transforms.
47-
"""
48-
super().__init__(*args, **kwargs)
49-
5033
@staticmethod
5134
def get_protocol_version() -> tuple[int, int]:
5235
return (22, 5)

gvm/protocols/gmp/_gmp226.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,6 @@ class GMPv226(GMPv225[T]):
3838
resp = gmp.get_tasks()
3939
"""
4040

41-
def __init__(self, *args, **kwargs):
42-
"""
43-
Create a new GMP protocol instance.
44-
45-
Args:
46-
connection: Connection to use to talk with the remote daemon. See
47-
:mod:`gvm.connections` for possible connection types.
48-
transform: Optional transform `callable <https://docs.python.org/3/library/functions.html#callable>`_ to convert response data.
49-
After each request the callable gets passed the plain response data
50-
which can be used to check the data and/or conversion into different
51-
representations like a xml dom.
52-
53-
See :mod:`gvm.transforms` for existing transforms.
54-
"""
55-
super().__init__(*args, **kwargs)
56-
5741
@staticmethod
5842
def get_protocol_version() -> tuple[int, int]:
5943
return (22, 6)

0 commit comments

Comments
 (0)