@@ -64,7 +64,7 @@ public static int field_size_limit(CodeContext/*!*/ context) {
6464dialect = csv.register_dialect(name, dialect)" ) ]
6565 public static void register_dialect ( CodeContext /*!*/ context ,
6666 [ ParamDictionary ] IDictionary < object , object > kwArgs ,
67- params object [ ] args ) {
67+ [ NotNone ] params object [ ] args ) {
6868 string name = null ;
6969 object dialectObj = null ;
7070 Dialect dialect = null ;
@@ -157,7 +157,7 @@ The returned object is an iterator. Each iteration returns a row
157157 of the CSV file (which can span multiple input lines)" ) ]
158158 public static object reader ( CodeContext /*!*/ context ,
159159 [ ParamDictionary ] IDictionary < object , object > kwArgs ,
160- params object [ ] args ) {
160+ [ NotNone ] params object [ ] args ) {
161161 object dialectObj = null ;
162162 Dialect dialect = null ;
163163 IEnumerator e = null ;
@@ -198,7 +198,7 @@ public static object reader(CodeContext/*!*/ context,
198198
199199 public static object writer ( CodeContext /*!*/ context ,
200200 [ ParamDictionary ] IDictionary < object , object > kwArgs ,
201- params object [ ] args ) {
201+ [ NotNone ] params object [ ] args ) {
202202 object output_file = null ;
203203 object dialectObj = null ;
204204 Dialect dialect = null ;
@@ -416,7 +416,7 @@ private static string SetString(string name, object src, bool found, string @def
416416
417417 public Dialect ( CodeContext /*!*/ context ,
418418 [ ParamDictionary ] IDictionary < object , object > kwArgs ,
419- params object [ ] args ) {
419+ [ NotNone ] params object [ ] args ) {
420420 object dialect = null ;
421421 object delimiter = null ;
422422 object doublequote = null ;
@@ -507,10 +507,10 @@ public Dialect(CodeContext/*!*/ context,
507507
508508 // CPython defines these overloads on Dialect since 3.10
509509 [ Documentation ( "raises an exception to avoid pickling" ) ]
510- public object __reduce__ ( params object [ ] args ) => throw PythonOps . TypeError ( "cannot pickle 'Dialect' instances" ) ;
510+ public object __reduce__ ( [ NotNone ] params object [ ] args ) => throw PythonOps . TypeError ( "cannot pickle 'Dialect' instances" ) ;
511511
512512 [ Documentation ( "raises an exception to avoid pickling" ) ]
513- public object __reduce_ex__ ( params object [ ] args ) => throw PythonOps . TypeError ( "cannot pickle 'Dialect' instances" ) ;
513+ public object __reduce_ex__ ( [ NotNone ] params object [ ] args ) => throw PythonOps . TypeError ( "cannot pickle 'Dialect' instances" ) ;
514514
515515 public string escapechar {
516516 get { return _escapechar ; }
0 commit comments