mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
25 lines
558 B
Python
25 lines
558 B
Python
from datetime import datetime
|
|
from typing import Any
|
|
|
|
CONSTANT = 'foo'
|
|
SENTINEL = object()
|
|
|
|
|
|
def foo(name: str = CONSTANT,
|
|
sentinel: Any = SENTINEL,
|
|
now: datetime = datetime.now(),
|
|
color: int = 0xFFFFFF,
|
|
*,
|
|
kwarg1,
|
|
kwarg2 = 0xFFFFFF) -> None:
|
|
"""docstring"""
|
|
|
|
|
|
class Class:
|
|
"""docstring"""
|
|
|
|
def meth(self, name: str = CONSTANT, sentinel: Any = SENTINEL,
|
|
now: datetime = datetime.now(), color: int = 0xFFFFFF,
|
|
*, kwarg1, kwarg2 = 0xFFFFFF) -> None:
|
|
"""docstring"""
|