Skip to content

Commit

Permalink
Add pickle methods to FieldFile
Browse files Browse the repository at this point in the history
This adds the methods `__getstate__()` and `__setstate__()`.
  • Loading branch information
mthuurne committed Apr 9, 2024
1 parent 93994a1 commit 69e316d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django-stubs/db/models/fields/files.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class FieldFile(File):
def delete(self, save: bool = ...) -> None: ...
@property
def closed(self) -> bool: ...
def __getstate__(self) -> dict[str, Any]: ...
def __setstate__(self, state: dict[str, Any]): ...

class FileDescriptor(DeferredAttribute):
field: FileField
Expand Down

0 comments on commit 69e316d

Please sign in to comment.