Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate cog.File in docs #1613

Merged
merged 2 commits into from
Apr 17, 2024
Merged

deprecate cog.File in docs #1613

merged 2 commits into from
Apr 17, 2024

Conversation

zeke
Copy link
Member

@zeke zeke commented Apr 10, 2024

The cog.File object was intended to be an alternative to cog.Path that represents a file handle rather than a path to a file, but it's confusing, the differences are not clear, it's not well documented, and nearly everyone uses cog.Path instead.

This PR updates the docs to warn people that cog.File is deprecated, will be removed, and that they should use cog.Path instead.


Here is the tiny list of public models I was able to find that use cog.File

Signed-off-by: Mattt Zmuda <mattt@replicate.com>
@zeke zeke merged commit 0aacc48 into main Apr 17, 2024
15 checks passed
@zeke zeke deleted the deprecate-cog.file-in-docs branch April 17, 2024 16:26
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