Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Commit c1c59bf

Browse files
Make typealiases @usableFromInline (pvieito#27)
1 parent 669eeae commit c1c59bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

PythonKit/Python.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
/// Typealias used when passing or returning a `PyObject` pointer with
2727
/// implied ownership.
28+
@usableFromInline
2829
typealias OwnedPyObjectPointer = PyObjectPointer
2930

3031
/// A primitive reference to a Python C API `PyObject`.

PythonKit/PythonLibrary+Symbols.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// Required Python typealias and constants.
1919
//===----------------------------------------------------------------------===//
2020

21+
@usableFromInline
2122
typealias PyObjectPointer = UnsafeMutableRawPointer
2223
typealias PyCCharPointer = UnsafePointer<Int8>
2324
typealias PyBinaryOperation =

0 commit comments

Comments
 (0)