Skip to content

Instantly share code, notes, and snippets.

View apinkney97's full-sized avatar

Alex Pinkney apinkney97

View GitHub Profile
@apinkney97
apinkney97 / __init__.pyi
Last active February 12, 2025 22:06
`graphics-py` type stubs (against graphics-py==5.0.1.post1)
import tkinter as tk
from typing import Any, Callable, Literal, Self, overload
__version__: str
type FontFace = Literal["helvetica", "arial", "courier", "times roman"]
type FontStyle = Literal["bold", "normal", "italic", "bold italic"]
type Font = tuple[FontFace, float, FontStyle]
class GraphicsError(Exception): ...