mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-17 21:20:37 +00:00
Hide import behind TYPE_CHECKING
No need to import it if we aren't type checking anything.
This commit is contained in:
committed by
Tristan Partin
parent
1121a1cbac
commit
2a3410d1c3
@@ -1,8 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import time
|
||||
|
||||
import pytest
|
||||
from fixtures.log_helper import log
|
||||
from fixtures.neon_fixtures import AuxFileStore, NeonEnv, PgBin, logical_replication_sync
|
||||
from fixtures.neon_fixtures import AuxFileStore, logical_replication_sync
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from fixtures.neon_fixtures import NeonEnv, PgBin
|
||||
|
||||
|
||||
@pytest.mark.parametrize("pageserver_aux_file_policy", [AuxFileStore.V2])
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import random
|
||||
import time
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from fixtures.neon_fixtures import NeonEnv
|
||||
if TYPE_CHECKING:
|
||||
from fixtures.neon_fixtures import NeonEnv
|
||||
|
||||
|
||||
def test_physical_replication(neon_simple_env: NeonEnv):
|
||||
|
||||
Reference in New Issue
Block a user