File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -1550,27 +1550,13 @@ public struct PythonFunction {
15501550 return try fn ( argumentsAsTuple [ 0 ] )
15511551 }
15521552 }
1553-
1554- public init ( _ fn: @escaping ( PythonObject ) throws -> Void ) {
1555- function = PyFunction { argumentsAsTuple in
1556- try fn ( argumentsAsTuple [ 0 ] )
1557- return Python . None
1558- }
1559- }
15601553
15611554 /// For cases where the Swift function should accept more (or less) than one parameter, accept an ordered array of all arguments instead
15621555 public init ( _ fn: @escaping ( [ PythonObject ] ) throws -> PythonConvertible ) {
15631556 function = PyFunction { argumentsAsTuple in
15641557 return try fn ( argumentsAsTuple. map { $0 } )
15651558 }
15661559 }
1567-
1568- public init ( _ fn: @escaping ( [ PythonObject ] ) throws -> Void ) {
1569- function = PyFunction { argumentsAsTuple in
1570- try fn ( argumentsAsTuple. map { $0 } )
1571- return Python . None
1572- }
1573- }
15741560}
15751561
15761562extension PythonFunction : PythonConvertible {
You can’t perform that action at this time.
0 commit comments