Skip to content

Release/3.0.0#45

Open
HungKNguyen wants to merge 3 commits intomainfrom
austin/release-3.0.0
Open

Release/3.0.0#45
HungKNguyen wants to merge 3 commits intomainfrom
austin/release-3.0.0

Conversation

@HungKNguyen
Copy link
Collaborator

Apply similar changes to PSPDFKit-labs/nutrient-dws-client-typescript#8

Cutting for release under v3.0

Copy link

@nickwinder nickwinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick pass. Worth answering my comment before I look again

# Type definitions for file inputs
# Breaking change in v3.0.0: FileInput no longer includes URL strings
LocalFileInput = Path | bytes | BinaryIO
FileInputWithUrl = str | Path | bytes | BinaryIO

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not just be a string, i.e. just url?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I don't fully get the question, FileInputWithUrl is an union type between LocalFileInput and the type string. So you want me to write something like

FileInputWithUrl = str | LocalFileInput

instead?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arh ok. The naming of FileInputWithUrl confused me. I assumed the types were either "local file" or "url" and unioned elsewhere.

Just be more explicit with the naming and union-ing

Suggested change
FileInputWithUrl = str | Path | bytes | BinaryIO
LocalFileInput = Path | bytes | BinaryIO
UrlFileInput = str
FileInput = UrlFileInput | LocalFileInput

HungKNguyen and others added 2 commits February 2, 2026 22:28
Co-authored-by: Nick Winder <nfxdevelopment@gmail.com>
Co-authored-by: Nick Winder <nfxdevelopment@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants