You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support __index__ on additional code paths in Bytes/ByteArray construction (#950)
* Use __index__ operator on more code paths
* Test __index__ use in construction of bytes, bytearray
* Remove support for BytesLikeAttribute on IBufferProtocol
* Sanitize Bytes.FromObject
Copy file name to clipboardExpand all lines: IronPythonAnalyzer/IronPythonAnalyzer/IronPythonAnalyzerAnalyzer.cs
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ public class IronPythonAnalyzerAnalyzer : DiagnosticAnalyzer {
19
19
20
20
privatestaticreadonlyDiagnosticDescriptorRule1=newDiagnosticDescriptor("IPY01",title:"Parameter which is marked not nullable does not have the NotNullAttribute",messageFormat:"Parameter '{0}' does not have the NotNullAttribute",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"Non-nullable reference type parameters should have the NotNullAttribute.");
21
21
privatestaticreadonlyDiagnosticDescriptorRule2=newDiagnosticDescriptor("IPY02",title:"Parameter which is marked nullable has the NotNullAttribute",messageFormat:"Parameter '{0}' should not have the NotNullAttribute",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"Nullable reference type parameters should not have the NotNullAttribute.");
22
-
privatestaticreadonlyDiagnosticDescriptorRule3=newDiagnosticDescriptor("IPY03",title:"BytesLikeAttribute used on a not supported type",messageFormat:"Parameter '{0}' declared bytes-like on unsupported type '{1}'",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"BytesLikeAttribute is only allowed on parameters of type ReadOnlyMemory<byte>, IReadOnlyList<byte>, or IList<byte>.");
22
+
privatestaticreadonlyDiagnosticDescriptorRule3=newDiagnosticDescriptor("IPY03",title:"BytesLikeAttribute used on a not supported type",messageFormat:"Parameter '{0}' declared bytes-like on unsupported type '{1}'",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"BytesLikeAttribute is only allowed on parameters of type IReadOnlyList<byte>, or IList<byte>.");
0 commit comments