◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].

### Fixed

## [3.0.1](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.1) - 2022-11-03

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/runtime/Types/ClassDerived.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ internal static Type CreateDerivedType(string name,
foreach (MethodInfo method in methods)
{
if (!method.Attributes.HasFlag(MethodAttributes.Virtual) |
method.Attributes.HasFlag(MethodAttributes.Final))
{
continue;
}
Expand Down
8 changes: 8 additions & 0 deletions src/testing/generictest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,12 @@ public static T[] EchoRange<T>(T[] items)
return items;
}
}
}
14 changes: 13 additions & 1 deletion tests/test_subclass.py
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
import System
import pytest
from Python.Test import (IInterfaceTest, SubClassTest, EventArgsTest,
FunctionsTest, IGenericInterface)
from System.Collections.Generic import List


Expand Down Expand Up @@ -327,3 +327,15 @@ def test_generic_interface():
obj = GenericInterfaceImpl()
SpecificInterfaceUser(obj, Int32(0))
GenericInterfaceUser[Int32](obj, Int32(0))
Toggle all file notes Toggle all file annotations