

Selected Reviewer: @Kludex
Allow plugins to catch non ValidationError errors. 

Selected Reviewer: @Kludex
from typing import List

from pydantic import RootModel


class Pets1(RootModel[List[str]]):
    pass


Pets2 = RootModel[List[str]]


class Pets3(RootModel):
    root: List[str]


pets1 = Pets1(['dog', 'cat'])
pets2 = Pets2(['dog', 'cat'])
pets3 = Pets3(['dog', 'cat'])


class Pets4(RootModel[List[str]]):
    pets: List[str]

from typing import List

from pydantic import RootModel


class Pets1(RootModel[List[str]]):
    pass


Pets2 = RootModel[List[str]]


class Pets3(RootModel):
    root: List[str]


pets1 = Pets1(['dog', 'cat'])
pets2 = Pets2(['dog', 'cat'])
pets3 = Pets3(['dog', 'cat'])


class Pets4(RootModel[List[str]]):
    pets: List[str]
