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

Commit9934cc8

Browse files
filmorlostmsu
authored andcommitted
Remove API warnings as these will be stabilised for 3.0
1 parentce76f2e commit9934cc8

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
publicsealedclassDecoderGroup:IPyObjectDecoder,IEnumerable<IPyObjectDecoder>
1312
{
1413
readonlyList<IPyObjectDecoder>decoders=newList<IPyObjectDecoder>();
@@ -49,7 +48,6 @@ public bool TryDecode<T>(PyObject pyObj, out T value)
4948
IEnumeratorIEnumerable.GetEnumerator()=>this.decoders.GetEnumerator();
5049
}
5150

52-
[Obsolete(Util.UnstableApiMessage)]
5351
publicstaticclassDecoderGroupExtensions
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
publicstaticIPyObjectDecoderGetDecoder(
6360
thisIPyObjectDecoderdecoder,
6461
PyObjectobjectType,TypetargetType)

‎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
publicsealedclassEncoderGroup:IPyObjectEncoder,IEnumerable<IPyObjectEncoder>
1312
{
1413
readonlyList<IPyObjectEncoder>encoders=newList<IPyObjectEncoder>();
@@ -50,15 +49,13 @@ public PyObject TryEncode(object value)
5049
IEnumeratorIEnumerable.GetEnumerator()=>this.encoders.GetEnumerator();
5150
}
5251

53-
[Obsolete(Util.UnstableApiMessage)]
5452
publicstaticclassEncoderGroupExtensions
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
publicstaticIEnumerable<IPyObjectEncoder>GetEncoders(thisIPyObjectEncoderdecoder,Typetype)
6360
{
6461
if(decoderisnull)thrownewArgumentNullException(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
publicclassRawProxyEncoder:IPyObjectEncoder
1110
{
1211
publicPyObjectTryEncode(objectvalue)

‎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
usingSystem.Linq;
66
usingSystem.Reflection;
77

8-
[Obsolete(Util.UnstableApiMessage)]
98
publicsealedclassTupleCodec<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
publicinterfaceIPyObjectDecoder
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
publicinterfaceIPyObjectEncoder
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
publicstaticclassPyObjectConversions
5249
{
5350
staticreadonlyDecoderGroupdecoders=newDecoderGroup();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp