def test_private_field_type_resolution_with_generic_type():
    """Check strawberry.Private when its argument is a implicit `Any` generic type.

    Refer to: https://github.com/strawberry-graphql/strawberry/issues/1938
    """
    T = TypeVar("T")

    class GenericPrivateType(Generic[T]):
        pass

    private_field = StrawberryField(
        type_annotation=StrawberryAnnotation(
            annotation="strawberry.Private[GenericPrivateType]",
            namespace={**globals(), **locals()},
        ),
    )
    assert private_field.type == strawberry.Private[GenericPrivateType]
Check strawberry.Private when its argument is a implicit `Any` generic type.

    Refer to: https://github.com/strawberry-graphql/strawberry/issues/1938
    
tests/schema/test_private_field.py