Skip to content

Remove API warnings as these will be stabilised for 3.0 #1315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/runtime/Codecs/DecoderGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Python.Runtime.Codecs
/// <summary>
/// Represents a group of <see cref="IPyObjectDecoder"/>s. Useful to group them by priority.
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public sealed class DecoderGroup: IPyObjectDecoder, IEnumerable<IPyObjectDecoder>
{
readonly List<IPyObjectDecoder> decoders = new List<IPyObjectDecoder>();
Expand Down Expand Up @@ -49,7 +48,6 @@ public bool TryDecode<T>(PyObject pyObj, out T value)
IEnumerator IEnumerable.GetEnumerator() => this.decoders.GetEnumerator();
}

[Obsolete(Util.UnstableApiMessage)]
public static class DecoderGroupExtensions
{
/// <summary>
Expand All @@ -58,7 +56,6 @@ public static class DecoderGroupExtensions
/// that can decode from <paramref name="objectType"/> to <paramref name="targetType"/>,
/// or <c>null</c> if a matching decoder can not be found.
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public static IPyObjectDecoder GetDecoder(
this IPyObjectDecoder decoder,
PyObject objectType, Type targetType)
Expand Down
3 changes: 0 additions & 3 deletions src/runtime/Codecs/EncoderGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Python.Runtime.Codecs
/// <summary>
/// Represents a group of <see cref="IPyObjectDecoder"/>s. Useful to group them by priority.
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public sealed class EncoderGroup: IPyObjectEncoder, IEnumerable<IPyObjectEncoder>
{
readonly List<IPyObjectEncoder> encoders = new List<IPyObjectEncoder>();
Expand Down Expand Up @@ -50,15 +49,13 @@ public PyObject TryEncode(object value)
IEnumerator IEnumerable.GetEnumerator() => this.encoders.GetEnumerator();
}

[Obsolete(Util.UnstableApiMessage)]
public static class EncoderGroupExtensions
{
/// <summary>
/// Gets specific instances of <see cref="IPyObjectEncoder"/>
/// (potentially selecting one from a collection),
/// that can encode the specified <paramref name="type"/>.
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public static IEnumerable<IPyObjectEncoder> GetEncoders(this IPyObjectEncoder decoder, Type type)
{
if (decoder is null) throw new ArgumentNullException(nameof(decoder));
Expand Down
1 change: 0 additions & 1 deletion src/runtime/Codecs/RawProxyEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace Python.Runtime.Codecs
/// A .NET object encoder, that returns raw proxies (e.g. no conversion to Python types).
/// <para>You must inherit from this class and override <see cref="CanEncode"/>.</para>
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public class RawProxyEncoder: IPyObjectEncoder
{
public PyObject TryEncode(object value)
Expand Down
1 change: 0 additions & 1 deletion src/runtime/Codecs/TupleCodecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace Python.Runtime.Codecs
using System.Linq;
using System.Reflection;

[Obsolete(Util.UnstableApiMessage)]
public sealed class TupleCodec<TTuple> : IPyObjectEncoder, IPyObjectDecoder
{
TupleCodec() { }
Expand Down
3 changes: 0 additions & 3 deletions src/runtime/converterextensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace Python.Runtime
/// <summary>
/// Defines <see cref="PyObject"/> conversion to CLR types (unmarshalling)
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public interface IPyObjectDecoder
{
/// <summary>
Expand All @@ -30,7 +29,6 @@ public interface IPyObjectDecoder
/// <summary>
/// Defines conversion from CLR objects into Python objects (e.g. <see cref="PyObject"/>) (marshalling)
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public interface IPyObjectEncoder
{
/// <summary>
Expand All @@ -47,7 +45,6 @@ public interface IPyObjectEncoder
/// This class allows to register additional marshalling codecs.
/// <para>Python.NET will pick suitable encoder/decoder registered first</para>
/// </summary>
[Obsolete(Util.UnstableApiMessage)]
public static class PyObjectConversions
{
static readonly DecoderGroup decoders = new DecoderGroup();
Expand Down