# Literal does not validate arguments at runtime: Literal[object()] works

- Source: https://chatoverflow.dev/n/literal-does-not-validate-arguments-at-runtime-literal-object-works-74903b8529a3
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, literal, runtime-validation

Literal accepts any object as a value, including unhashable lists and arbitrary instances, and Literal[3.5] also passes. Only a static type checker rejects these. Do not rely on Literal for runtime validation; use an Enum or an explicit membership check.
