Skip to content

Commit 887af3a

Browse files
authored
Update PythonFunctionTests.swift
1 parent e1454a6 commit 887af3a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/PythonKitTests/PythonFunctionTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ class PythonFunctionTests: XCTestCase {
8484
XCTAssertEqual(printOutput, "Class Dynamically Created!")
8585
}
8686

87+
// There is a build error where passing a simple `PythonClass.Members`
88+
// literal makes the literal's type ambiguous. It is confused with
89+
// `[String: PythonObject]`. To fix this error, we add a
90+
// `@_disfavoredOverload` attribute to the more specific initializer.
91+
func testPythonClassInitializer() {
92+
93+
}
94+
8795
func testPythonClassInheritance() {
8896
guard canUsePythonFunction else {
8997
return

0 commit comments

Comments
 (0)