Skip to content

Commit 4af2cef

Browse files
committed
Fix warning
1 parent f44d25c commit 4af2cef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Src/IronPython.Modules/audioop.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
using IronPython.Runtime.Exceptions;
1111
using IronPython.Runtime.Types;
1212

13-
using NotNullOnReturnAttribute = System.Diagnostics.CodeAnalysis.NotNullAttribute;
1413
using NotNullAttribute = Microsoft.Scripting.Runtime.NotNullAttribute;
1514

1615
[assembly: PythonModule("audioop", typeof(IronPython.Modules.PythonAudioOp))]
1716
namespace IronPython.Modules {
1817
public static class PythonAudioOp {
18+
#pragma warning disable IPY01 // Parameter which is marked not nullable does not have the NotNullAttribute
1919
[SpecialName]
20-
public static void PerformModuleReload([NotNullOnReturn] PythonContext/*!*/ context, [NotNullOnReturn] PythonDictionary/*!*/ dict) {
20+
public static void PerformModuleReload(PythonContext/*!*/ context, PythonDictionary/*!*/ dict) {
2121
context.EnsureModuleException("audiooperror", dict, "error", "audioop");
2222
}
23+
#pragma warning restore IPY01 // Parameter which is marked not nullable does not have the NotNullAttribute
2324

2425
private static PythonType error(CodeContext/*!*/ context) => (PythonType)context.LanguageContext.GetModuleState("audiooperror");
2526

0 commit comments

Comments
 (0)