"""
Provide Betty's ancestry place types.
"""
from __future__ import annotations
from betty.ancestry.place_type import PlaceType
from betty.locale.localizable import _
from betty.plugin import ShorthandPluginBase
[docs]
class Borough(ShorthandPluginBase, PlaceType):
"""
A borough.
"""
_plugin_id = "borough"
_plugin_label = _("Borough")
[docs]
class Building(ShorthandPluginBase, PlaceType):
"""
A building.
"""
_plugin_id = "building"
_plugin_label = _("Building")
[docs]
class City(ShorthandPluginBase, PlaceType):
"""
A city.
"""
_plugin_id = "city"
_plugin_label = _("City")
[docs]
class Country(ShorthandPluginBase, PlaceType):
"""
A country.
"""
_plugin_id = "country"
_plugin_label = _("Country")
[docs]
class County(ShorthandPluginBase, PlaceType):
"""
A county.
"""
_plugin_id = "county"
_plugin_label = _("County")
[docs]
class Department(ShorthandPluginBase, PlaceType):
"""
A department.
"""
_plugin_id = "department"
_plugin_label = _("Department")
[docs]
class District(ShorthandPluginBase, PlaceType):
"""
A district.
"""
_plugin_id = "district"
_plugin_label = _("District")
[docs]
class Farm(ShorthandPluginBase, PlaceType):
"""
A farm.
"""
_plugin_id = "farm"
_plugin_label = _("Farm")
[docs]
class Hamlet(ShorthandPluginBase, PlaceType):
"""
A hamlet.
"""
_plugin_id = "hamlet"
_plugin_label = _("Hamlet")
[docs]
class Locality(ShorthandPluginBase, PlaceType):
"""
A locality.
"""
_plugin_id = "locality"
_plugin_label = _("Locality")
[docs]
class Municipality(ShorthandPluginBase, PlaceType):
"""
A municipality.
"""
_plugin_id = "municipality"
_plugin_label = _("Municipality")
[docs]
class Neighborhood(ShorthandPluginBase, PlaceType):
"""
A neighborhood.
"""
_plugin_id = "neighborhood"
_plugin_label = _("Neighborhood")
[docs]
class Number(ShorthandPluginBase, PlaceType):
"""
A place number, e.g. a house or flat number.
"""
_plugin_id = "number"
_plugin_label = _("Number")
[docs]
class Parish(ShorthandPluginBase, PlaceType):
"""
A parish.
"""
_plugin_id = "parish"
_plugin_label = _("Parish")
[docs]
class Province(ShorthandPluginBase, PlaceType):
"""
A province.
"""
_plugin_id = "province"
_plugin_label = _("Province")
[docs]
class Region(ShorthandPluginBase, PlaceType):
"""
A region.
"""
_plugin_id = "region"
_plugin_label = _("Region")
[docs]
class State(ShorthandPluginBase, PlaceType):
"""
A state.
"""
_plugin_id = "state"
_plugin_label = _("State")
[docs]
class Street(ShorthandPluginBase, PlaceType):
"""
A street.
"""
_plugin_id = "street"
_plugin_label = _("Street")
[docs]
class Town(ShorthandPluginBase, PlaceType):
"""
A town.
"""
_plugin_id = "town"
_plugin_label = _("Town")
[docs]
class Unknown(ShorthandPluginBase, PlaceType):
"""
A place of an unknown type.
"""
_plugin_id = "unknown"
_plugin_label = _("Unknown")
[docs]
class Village(ShorthandPluginBase, PlaceType):
"""
A village.
"""
_plugin_id = "village"
_plugin_label = _("Village")