Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9934cc8

Browse files
filmorlostmsu
authored andcommitted
Remove API warnings as these will be stabilised for 3.0
1 parent ce76f2e commit 9934cc8

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

src/runtime/Codecs/DecoderGroup.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace Python.Runtime.Codecs
88
/// <summary>
99
/// Represents a group of <see cref="IPyObjectDecoder"/>s. Useful to group them by priority.
1010
/// </summary>
11-
[Obsolete(Util.UnstableApiMessage)]
1211
public sealed class DecoderGroup: IPyObjectDecoder, IEnumerable<IPyObjectDecoder>
1312
{
1413
readonly List<IPyObjectDecoder> decoders = new List<IPyObjectDecoder>();
@@ -49,7 +48,6 @@ public bool TryDecode<T>(PyObject pyObj, out T value)
4948
IEnumerator IEnumerable.GetEnumerator() => this.decoders.GetEnumerator();
5049
}
5150

52-
[Obsolete(Util.UnstableApiMessage)]
5351
public static class DecoderGroupExtensions
5452
{
5553
/// <summary>
@@ -58,7 +56,6 @@ public static class DecoderGroupExtensions
5856
/// that can decode from <paramref name="objectType"/> to <paramref name="targetType"/>,
5957
/// or <c>null</c> if a matching decoder can not be found.
6058
/// </summary>
61-
[Obsolete(Util.UnstableApiMessage)]
6259
public static IPyObjectDecoder GetDecoder(
6360
this IPyObjectDecoder decoder,
6461
PyObject objectType, Type targetType)

src/runtime/Codecs/EncoderGroup.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace Python.Runtime.Codecs
88
/// <summary>
99
/// Represents a group of <see cref="IPyObjectDecoder"/>s. Useful to group them by priority.
1010
/// </summary>
11-
[Obsolete(Util.UnstableApiMessage)]
1211
public sealed class EncoderGroup: IPyObjectEncoder, IEnumerable<IPyObjectEncoder>
1312
{
1413
readonly List<IPyObjectEncoder> encoders = new List<IPyObjectEncoder>();
@@ -50,15 +49,13 @@ public PyObject TryEncode(object value)
5049
IEnumerator IEnumerable.GetEnumerator() => this.encoders.GetEnumerator();
5150
}
5251

53-
[Obsolete(Util.UnstableApiMessage)]
5452
public static class EncoderGroupExtensions
5553
{
5654
/// <summary>
5755
/// Gets specific instances of <see cref="IPyObjectEncoder"/>
5856
/// (potentially selecting one from a collection),
5957
/// that can encode the specified <paramref name="type"/>.
6058
/// </summary>
61-
[Obsolete(Util.UnstableApiMessage)]
6259
public static IEnumerable<IPyObjectEncoder> GetEncoders(this IPyObjectEncoder decoder, Type type)
6360
{
6461
if (decoder is null) throw new ArgumentNullException(nameof(decoder));

src/runtime/Codecs/RawProxyEncoder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace Python.Runtime.Codecs
66
/// A .NET object encoder, that returns raw proxies (e.g. no conversion to Python types).
77
/// <para>You must inherit from this class and override <see cref="CanEncode"/>.</para>
88
/// </summary>
9-
[Obsolete(Util.UnstableApiMessage)]
109
public class RawProxyEncoder: IPyObjectEncoder
1110
{
1211
public PyObject TryEncode(object value)

src/runtime/Codecs/TupleCodecs.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace Python.Runtime.Codecs
55
using System.Linq;
66
using System.Reflection;
77

8-
[Obsolete(Util.UnstableApiMessage)]
98
public sealed class TupleCodec<TTuple> : IPyObjectEncoder, IPyObjectDecoder
109
{
1110
TupleCodec() { }

src/runtime/converterextensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace Python.Runtime
1010
/// <summary>
1111
/// Defines <see cref="PyObject"/> conversion to CLR types (unmarshalling)
1212
/// </summary>
13-
[Obsolete(Util.UnstableApiMessage)]
1413
public interface IPyObjectDecoder
1514
{
1615
/// <summary>
@@ -30,7 +29,6 @@ public interface IPyObjectDecoder
3029
/// <summary>
3130
/// Defines conversion from CLR objects into Python objects (e.g. <see cref="PyObject"/>) (marshalling)
3231
/// </summary>
33-
[Obsolete(Util.UnstableApiMessage)]
3432
public interface IPyObjectEncoder
3533
{
3634
/// <summary>
@@ -47,7 +45,6 @@ public interface IPyObjectEncoder
4745
/// This class allows to register additional marshalling codecs.
4846
/// <para>Python.NET will pick suitable encoder/decoder registered first</para>
4947
/// </summary>
50-
[Obsolete(Util.UnstableApiMessage)]
5148
public static class PyObjectConversions
5249
{
5350
static readonly DecoderGroup decoders = new DecoderGroup();

0 commit comments

Comments
 (0)