- Create Economist SubmissionTracking package correctly: * mainArticle = full blog post content * coverLetter = 216-word SIR— letter * Links to blog post via blogPostId - Archive 'Letter to The Economist' from blog posts (it's the cover letter) - Fix date display on article cards (use published_at) - Target publication already displaying via blue badge Database changes: - Make blogPostId optional in SubmissionTracking model - Economist package ID: 68fa85ae49d4900e7f2ecd83 - Le Monde package ID: 68fa2abd2e6acd5691932150 Next: Enhanced modal with tabs, validation, export 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
919 B
Python
45 lines
919 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
from collections.abc import Sequence
|
|
from typing import Any, Protocol, TypeVar
|
|
|
|
TYPE_CHECKING = False
|
|
if TYPE_CHECKING:
|
|
from numbers import _IntegralLike as IntegralLike
|
|
|
|
try:
|
|
import numpy.typing as npt
|
|
|
|
NumpyArray = npt.NDArray[Any]
|
|
except ImportError:
|
|
pass
|
|
|
|
if sys.version_info >= (3, 13):
|
|
from types import CapsuleType
|
|
else:
|
|
CapsuleType = object
|
|
|
|
if sys.version_info >= (3, 12):
|
|
from collections.abc import Buffer
|
|
else:
|
|
Buffer = Any
|
|
|
|
|
|
_Ink = float | tuple[int, ...] | str
|
|
|
|
Coords = Sequence[float] | Sequence[Sequence[float]]
|
|
|
|
|
|
_T_co = TypeVar("_T_co", covariant=True)
|
|
|
|
|
|
class SupportsRead(Protocol[_T_co]):
|
|
def read(self, length: int = ..., /) -> _T_co: ...
|
|
|
|
|
|
StrOrBytesPath = str | bytes | os.PathLike[str] | os.PathLike[bytes]
|
|
|
|
|
|
__all__ = ["Buffer", "IntegralLike", "StrOrBytesPath", "SupportsRead"]
|