Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lostmsu merged 1 commit intopythonnet:masterfromfilmor:remove-api-warnings
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionssrc/runtime/Codecs/DecoderGroup.cs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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 deletionssrc/runtime/Codecs/EncoderGroup.cs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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 deletionsrc/runtime/Codecs/RawProxyEncoder.cs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsrc/runtime/Codecs/TupleCodecs.cs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionssrc/runtime/converterextensions.cs
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp