diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 637b6d1..9a447b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,8 +63,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - # target: [aarch64, armv7, s390x, ppc64le] - target: [aarch64, armv7, ppc64le] +x target: [aarch64, armv7, ppc64le] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/src/lib.rs b/src/lib.rs index 124921b..fa6fa4a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,6 +48,7 @@ impl UUID { }; #[new] + #[pyo3(signature = (hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None))] fn new( hex: Option<&str>, bytes: Option<&Bound<'_, PyBytes>>, @@ -308,6 +309,7 @@ impl UUID { } #[pyfunction] +#[pyo3(signature = (node=None, clock_seq=None))] fn uuid1(node: Option, clock_seq: Option) -> PyResult { let node = match node { Some(node) => node.to_ne_bytes(), @@ -356,6 +358,7 @@ fn uuid5(namespace: &UUID, name: StringOrBytes) -> PyResult { } #[pyfunction] +#[pyo3(signature = (node=None, timestamp=None, nanos=None))] fn uuid6(node: Option, timestamp: Option, nanos: Option) -> PyResult { let node = match node { Some(node) => node.to_ne_bytes(), @@ -377,6 +380,7 @@ fn uuid6(node: Option, timestamp: Option, nanos: Option) -> PyRes } #[pyfunction] +#[pyo3(signature = (timestamp=None, nanos=None))] fn uuid7(timestamp: Option, nanos: Option) -> PyResult { let uuid = match timestamp { Some(timestamp) => {