Skip to main content

cairocffi-stubs

This package contains type stubs to provide more precise static types and type inference for cairocffi.

Installation

pip install cairocffi-stubs

Usage

from io import BytesIO
import cairocffi as cairo
import matplotlib.pyplot as plt

surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 300, 200)
context = cairo.Context(surface)
context.show_text('Hello World!')
img = BytesIO(surface.write_to_png())  # overloaded
plt.imshow(plt.imread(img))
plt.show()

Static type checker can correctly recognize the return type of surface.write_to_png() as bytes when passing no arguments. No type errors will be raised.

Style Guidelines

Follow the same style guidelines as typeshed.

Metadata

Release files for cairocffi-stubs 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cairocffi-stubs 0.1.2
File Size Uploaded
cairocffi-stubs-0.1.2.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cairocffi-stubs 0.1.2
File Interpreter ABI Platform
cairocffi_stubs-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / cairocffi-stubs-0.1.2.tar.gz

Download URL cairocffi-stubs-0.1.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
02c250aa7626549a39811ed6f8a8be60d5a0d1a8a1190decd8f4b49c1dee3ce6
BLAKE2b-256 checksum
How to use checksums
8bf6ec686b31333dee2060b4494d05fc2571b1955a0a491c452ccf0e0753b519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Windows/10

Release files / cairocffi_stubs-0.1.2-py3-none-any.whl

Download URL cairocffi_stubs-0.1.2-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1208023f17f6261debd01000b86818cc1c8cba8597a6fa134cd0217c53a59478
BLAKE2b-256 checksum
How to use checksums
6b3ce2dca7798514cc15a485790a51094c7e2ace5451794e1eefa846d0c8fe17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Windows/10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page