New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

lander

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lander - pypi Package Compare versions

Comparing version
2.0.0a13
to
2.0.0a14
+3
changelog.d/20240718_160401_jsick_DM_45321.md
### Backwards-incompatible changes
- The `MetadataContainer` type variable has been renamed to `DocumentMetadataT` and is now available from the `lander.ext.parser` module. This allows subclasses to declare the type variable consistently.
+1
-1
Metadata-Version: 2.1
Name: lander
Version: 2.0.0a13
Version: 2.0.0a14
Summary: HTML landing page generator for PDF/LaTeX documents

@@ -5,0 +5,0 @@ License: MIT License

Metadata-Version: 2.1
Name: lander
Version: 2.0.0a13
Version: 2.0.0a14
Summary: HTML landing page generator for PDF/LaTeX documents

@@ -5,0 +5,0 @@ License: MIT License

@@ -18,2 +18,3 @@ .gitattributes

changelog.d/20240718_152120_jsick_DM_45321.md
changelog.d/20240718_160401_jsick_DM_45321.md
changelog.d/_template.md.jinja

@@ -20,0 +21,0 @@ src/lander/__init__.py

@@ -5,2 +5,3 @@ """Support the Lander parsing extensions."""

"DocumentMetadata",
"DocumentMetadataT",
"Parser",

@@ -27,2 +28,2 @@ "Contributor",

from lander.ext.parser._gitdata import GitFile, GitRepository
from lander.ext.parser._parser import Parser
from lander.ext.parser._parser import DocumentMetadataT, Parser

@@ -18,9 +18,9 @@ from __future__ import annotations

__all__ = ["Parser", "MetadataContainer"]
__all__ = ["Parser", "DocumentMetadataT"]
#: Type variable of the DocumentMetadata Pydantic object being stored in Parser
MetadataContainer = TypeVar("MetadataContainer", bound=DocumentMetadata)
DocumentMetadataT = TypeVar("DocumentMetadataT", bound=DocumentMetadata)
class Parser(Generic[MetadataContainer], metaclass=ABCMeta):
class Parser(Generic[DocumentMetadataT], metaclass=ABCMeta):
"""Base class for TeX document metadata parsing extensions.

@@ -100,3 +100,3 @@

@property
def metadata(self) -> MetadataContainer:
def metadata(self) -> DocumentMetadataT:
"""Metadata about the document."""

@@ -123,3 +123,3 @@ return self._metadata

@abstractmethod
def extract_metadata(self) -> MetadataContainer:
def extract_metadata(self) -> DocumentMetadataT:
"""Extract metadata from the document.

@@ -126,0 +126,0 @@