types-pydicom
Extended type hints for pydicom's Dataset element keywords.
Installation
$ pip install types-pydicom
Usage
# test_typing.py
from pydicom import Dataset
ds = Dataset()
ds.SamplesPerPixel = "abc"
reveal_type(ds.PixelData)
$ pip install pydicom types-pydicom mypy
$ mypy test_typing.py
test_typing.py:5: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
test_typing.py:6: note: Revealed type is "Union[None, builtins.bytes]"
Found 1 errors in 1 file (checked 1 source file)
Development
git clone https://github.com/pydicom
git clone https://github.com/pydicom/types-pydicom
cd types-pydicom
mkdir env
python3.10 -m venv env/env310
source env/env310/bin/activate
pip install -e .[dev]
Updating
python scripts/update_package.py
Metadata
Release files for types-pydicom 3.0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| types_pydicom-3.0.0.0.tar.gz | 105.0 kB | Without provenance | Details for types_pydicom-3.0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| types_pydicom-3.0.0.0-py3-none-any.whl | Python 3 | none | any | Details for types_pydicom-3.0.0.0-py3-none-any.whl |
Total release size: 183.6 kB
Release files / types_pydicom-3.0.0.0.tar.gz
| Download URL | types_pydicom-3.0.0.0.tar.gz |
|---|---|
| Size | 105.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e44380c899e22842cb300ba13aa28623bacef5ac078f2d613691885360c6bc0
|
|
BLAKE2b-256 checksum How to use checksums |
c14953dfeb7991d218020244ec9876fbd904c43cbd03d4b475dfbf96f55c5aac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / types_pydicom-3.0.0.0-py3-none-any.whl
| Download URL | types_pydicom-3.0.0.0-py3-none-any.whl |
|---|---|
| Size | 78.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03634ecaf30765606ab0abdee9e743076f76bdb69bbca8712626996b4c29c2e8
|
|
BLAKE2b-256 checksum How to use checksums |
a254a964eaa9b1308884dd3140b1ea2cda14c5519b89cdc94e39e8f40395bbbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for types-pydicom 3.0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.