# pydantic 2.14.2 (MIT), harvested by tools/harvest_corpus.py
=== input
Return type hints for a function.

    This is similar to the `typing.get_type_hints` function, with a few differences:
    - Support `functools.partial` by using the underlying `func` attribute.
    - Do not wrap type annotation of a parameter with `Optional` if it has a default value of `None`
      (related bug: https://github.com/python/cpython/issues/90353, only fixed in 3.11+).
    
=== parse google
short_description: 'Return type hints for a function.'
long_description: |
  This is similar to the `typing.get_type_hints` function, with a few differences:
  - Support `functools.partial` by using the underlying `func` attribute.
  - Do not wrap type annotation of a parameter with `Optional` if it has a default value of `None`
    (related bug: https://github.com/python/cpython/issues/90353, only fixed in 3.11+).
blank_after_short_description: True
blank_after_long_description: False
style: google
=== detect
rest
=== compose google
Return type hints for a function.

This is similar to the `typing.get_type_hints` function, with a few differences:
- Support `functools.partial` by using the underlying `func` attribute.
- Do not wrap type annotation of a parameter with `Optional` if it has a default value of `None`
  (related bug: https://github.com/python/cpython/issues/90353, only fixed in 3.11+).
