Skip to content

Commit 4366413

Browse files
committed
increase category for _attributes deprecation to DeprecationWarning
1 parent ba6fa6f commit 4366413

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

graphviz/dot.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def __iter__(self, subgraph: bool = False) -> typing.Iterator[str]:
181181

182182
yield self._tail
183183

184-
@_tools.deprecate_positional_args(supported_number=2, ignore_arg='self')
184+
@_tools.deprecate_positional_args(supported_number=2, ignore_arg='self',
185+
category=DeprecationWarning)
185186
def node(self, name: str,
186187
label: typing.Optional[str] = None,
187188
_attributes=None, **attrs) -> None:
@@ -203,7 +204,8 @@ def node(self, name: str,
203204
line = self._node(name, attr_list)
204205
self.body.append(line)
205206

206-
@_tools.deprecate_positional_args(supported_number=3, ignore_arg='self')
207+
@_tools.deprecate_positional_args(supported_number=3, ignore_arg='self',
208+
category=DeprecationWarning)
207209
def edge(self, tail_name: str, head_name: str,
208210
label: typing.Optional[str] = None,
209211
_attributes=None, **attrs) -> None:
@@ -254,7 +256,8 @@ def edges(self, tail_head_iter) -> None:
254256
self.body += [edge(tail=quote(t), head=quote(h))
255257
for t, h in tail_head_iter]
256258

257-
@_tools.deprecate_positional_args(supported_number=1, ignore_arg='self')
259+
@_tools.deprecate_positional_args(supported_number=1, ignore_arg='self',
260+
category=DeprecationWarning)
258261
def attr(self, kw: typing.Optional[str] = None,
259262
_attributes=None, **attrs) -> None:
260263
"""Add a general or graph/node/edge attribute statement.

0 commit comments

Comments
 (0)