From 110baa2db99f942020569c8b7c215a2307983153 Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Fri, 11 Dec 2020 08:16:34 +0100 Subject: [PATCH] Remove API warnings as these will be stabilised for 3.0 --- src/runtime/Codecs/DecoderGroup.cs | 3 --- src/runtime/Codecs/EncoderGroup.cs | 3 --- src/runtime/Codecs/RawProxyEncoder.cs | 1 - src/runtime/Codecs/TupleCodecs.cs | 1 - src/runtime/converterextensions.cs | 3 --- 5 files changed, 11 deletions(-) diff --git a/src/runtime/Codecs/DecoderGroup.cs b/src/runtime/Codecs/DecoderGroup.cs index 8a290d5d4..cc511ed50 100644 --- a/src/runtime/Codecs/DecoderGroup.cs +++ b/src/runtime/Codecs/DecoderGroup.cs @@ -8,7 +8,6 @@ namespace Python.Runtime.Codecs /// /// Represents a group of s. Useful to group them by priority. /// - [Obsolete(Util.UnstableApiMessage)] public sealed class DecoderGroup: IPyObjectDecoder, IEnumerable { readonly List decoders = new List(); @@ -49,7 +48,6 @@ public bool TryDecode(PyObject pyObj, out T value) IEnumerator IEnumerable.GetEnumerator() => this.decoders.GetEnumerator(); } - [Obsolete(Util.UnstableApiMessage)] public static class DecoderGroupExtensions { /// @@ -58,7 +56,6 @@ public static class DecoderGroupExtensions /// that can decode from to , /// or null if a matching decoder can not be found. /// - [Obsolete(Util.UnstableApiMessage)] public static IPyObjectDecoder GetDecoder( this IPyObjectDecoder decoder, PyObject objectType, Type targetType) diff --git a/src/runtime/Codecs/EncoderGroup.cs b/src/runtime/Codecs/EncoderGroup.cs index a5708c0bb..4f776a669 100644 --- a/src/runtime/Codecs/EncoderGroup.cs +++ b/src/runtime/Codecs/EncoderGroup.cs @@ -8,7 +8,6 @@ namespace Python.Runtime.Codecs /// /// Represents a group of s. Useful to group them by priority. /// - [Obsolete(Util.UnstableApiMessage)] public sealed class EncoderGroup: IPyObjectEncoder, IEnumerable { readonly List encoders = new List(); @@ -50,7 +49,6 @@ public PyObject TryEncode(object value) IEnumerator IEnumerable.GetEnumerator() => this.encoders.GetEnumerator(); } - [Obsolete(Util.UnstableApiMessage)] public static class EncoderGroupExtensions { /// @@ -58,7 +56,6 @@ public static class EncoderGroupExtensions /// (potentially selecting one from a collection), /// that can encode the specified . /// - [Obsolete(Util.UnstableApiMessage)] public static IEnumerable GetEncoders(this IPyObjectEncoder decoder, Type type) { if (decoder is null) throw new ArgumentNullException(nameof(decoder)); diff --git a/src/runtime/Codecs/RawProxyEncoder.cs b/src/runtime/Codecs/RawProxyEncoder.cs index a1b6c52b3..37ad0487b 100644 --- a/src/runtime/Codecs/RawProxyEncoder.cs +++ b/src/runtime/Codecs/RawProxyEncoder.cs @@ -6,7 +6,6 @@ namespace Python.Runtime.Codecs /// A .NET object encoder, that returns raw proxies (e.g. no conversion to Python types). /// You must inherit from this class and override . /// - [Obsolete(Util.UnstableApiMessage)] public class RawProxyEncoder: IPyObjectEncoder { public PyObject TryEncode(object value) diff --git a/src/runtime/Codecs/TupleCodecs.cs b/src/runtime/Codecs/TupleCodecs.cs index a9ae33fe0..5ac55846f 100644 --- a/src/runtime/Codecs/TupleCodecs.cs +++ b/src/runtime/Codecs/TupleCodecs.cs @@ -5,7 +5,6 @@ namespace Python.Runtime.Codecs using System.Linq; using System.Reflection; - [Obsolete(Util.UnstableApiMessage)] public sealed class TupleCodec : IPyObjectEncoder, IPyObjectDecoder { TupleCodec() { } diff --git a/src/runtime/converterextensions.cs b/src/runtime/converterextensions.cs index 667fc6f00..b10d0c59f 100644 --- a/src/runtime/converterextensions.cs +++ b/src/runtime/converterextensions.cs @@ -10,7 +10,6 @@ namespace Python.Runtime /// /// Defines conversion to CLR types (unmarshalling) /// - [Obsolete(Util.UnstableApiMessage)] public interface IPyObjectDecoder { /// @@ -30,7 +29,6 @@ public interface IPyObjectDecoder /// /// Defines conversion from CLR objects into Python objects (e.g. ) (marshalling) /// - [Obsolete(Util.UnstableApiMessage)] public interface IPyObjectEncoder { /// @@ -47,7 +45,6 @@ public interface IPyObjectEncoder /// This class allows to register additional marshalling codecs. /// Python.NET will pick suitable encoder/decoder registered first /// - [Obsolete(Util.UnstableApiMessage)] public static class PyObjectConversions { static readonly DecoderGroup decoders = new DecoderGroup();