Skip to content

Commit 59e3b6b

Browse files
committed
Use nullable annotation
1 parent d26c214 commit 59e3b6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/IronPython/Runtime/PythonContext.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,14 @@ internal static Version GetPythonVersion()
685685

686686
internal FloatFormat DoubleFormat { get; set; }
687687

688+
#nullable enable
689+
688690
/// <summary>
689691
/// Not null if the Python context is running in a console host.
690692
/// </summary>
691-
internal IConsole/*?*/ Console { get; set; }
693+
internal IConsole? Console { get; set; }
694+
695+
#nullable restore
692696

693697
/// <summary>
694698
/// Initializes the sys module on startup. Called both to load and reload sys

0 commit comments

Comments
 (0)