@@ -181,7 +181,8 @@ def __iter__(self, subgraph: bool = False) -> typing.Iterator[str]:
181
181
182
182
yield self ._tail
183
183
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 )
185
186
def node (self , name : str ,
186
187
label : typing .Optional [str ] = None ,
187
188
_attributes = None , ** attrs ) -> None :
@@ -203,7 +204,8 @@ def node(self, name: str,
203
204
line = self ._node (name , attr_list )
204
205
self .body .append (line )
205
206
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 )
207
209
def edge (self , tail_name : str , head_name : str ,
208
210
label : typing .Optional [str ] = None ,
209
211
_attributes = None , ** attrs ) -> None :
@@ -254,7 +256,8 @@ def edges(self, tail_head_iter) -> None:
254
256
self .body += [edge (tail = quote (t ), head = quote (h ))
255
257
for t , h in tail_head_iter ]
256
258
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 )
258
261
def attr (self , kw : typing .Optional [str ] = None ,
259
262
_attributes = None , ** attrs ) -> None :
260
263
"""Add a general or graph/node/edge attribute statement.
0 commit comments