-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: resolve circular imports by inlining file adapter
- while it's perfectly fine to use lazy imports to workaround circular references, it appears to destroy the pylance integration and auto-imports. - move the clients.py and file.py code into base to make it so there is no need for lazy import workarounds.
- Loading branch information
1 parent
3e53f21
commit a60006f
Showing
10 changed files
with
446 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
from .base import ( | ||
BasePath, | ||
Blob, | ||
BlobStat, | ||
Bucket, | ||
BucketClient, | ||
BucketEntry, | ||
BucketsAccessor, | ||
ClientError, | ||
FluidPath, | ||
Pathy, | ||
PurePathy, | ||
BasePath as BasePath, | ||
Blob as Blob, | ||
BlobStat as BlobStat, | ||
Bucket as Bucket, | ||
BucketClient as BucketClient, | ||
BucketEntry as BucketEntry, | ||
BucketsAccessor as BucketsAccessor, | ||
ClientError as ClientError, | ||
FluidPath as FluidPath, | ||
Pathy as Pathy, | ||
PurePathy as PurePathy, | ||
BlobFS as BlobFS, | ||
BucketClientFS as BucketClientFS, | ||
BucketEntryFS as BucketEntryFS, | ||
BucketFS as BucketFS, | ||
clear_fs_cache as clear_fs_cache, | ||
get_client as get_client, | ||
get_fs_cache as get_fs_cache, | ||
get_fs_client as get_fs_client, | ||
register_client as register_client, | ||
set_client_params as set_client_params, | ||
use_fs as use_fs, | ||
use_fs_cache as use_fs_cache, | ||
) | ||
from .clients import ( | ||
clear_fs_cache, | ||
get_client, | ||
get_fs_cache, | ||
get_fs_client, | ||
register_client, | ||
set_client_params, | ||
use_fs, | ||
use_fs_cache, | ||
from .gcs import ( | ||
BlobGCS as BlobGCS, | ||
BucketClientGCS as BucketClientGCS, | ||
BucketEntryGCS as BucketEntryGCS, | ||
BucketGCS as BucketGCS, | ||
has_gcs as has_gcs, | ||
) | ||
from .file import BlobFS, BucketClientFS, BucketEntryFS, BucketFS | ||
from .gcs import BlobGCS, BucketClientGCS, BucketEntryGCS, BucketGCS, has_gcs |
Oops, something went wrong.