Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

any python type hint

from typing import Any

def my_func(a: Any) -> Any:
	return a
Comment

any python type hint


>>> import typing
>>> print(typing.Any.__doc__)
Special type indicating an unconstrained type.

    - Any object is an instance of Any.
    - Any class is a subclass of Any.
    - As a special case, Any and object are subclasses of each other.

Comment

PREVIOUS NEXT
Code Example
Python :: python match case example 
Python :: fetch last record from django model 
Python :: python remove last part of string 
Python :: join function 
Python :: create django app 
Python :: django collectstatic with auto yes 
Python :: Python Difference between two timedelta objects 
Python :: DateEntry tkinter 
Python :: how to install pandas for aws sam local 
Python :: pydub create empty track 
Python :: how to get module path in python 
Python :: how to chose version of python 
Python :: how to skip error python 
Python :: python get chars among quotation marks 
Python :: how to get last element of list in python 
Python :: python oneline if statement 
Python :: how to encrypt and decrypt strings python 
Python :: add space before and after string python 
Python :: Python NumPy ascontiguousarray Function Example Scalar to an array 
Python :: python Cerberus 
Python :: getting-the-last-element-of-a-list 
Python :: # add keys to existing dictionary 
Python :: deletion in a binary search tree 
Python :: RMSE value from cross validation 
Python :: deepcopy python 
Python :: python time a task 
Python :: remove days when subtracting time python 
Python :: python grab results from cursor.execute 
Python :: create instances of a class in a for loop 
Python :: how to extract keys from dictreader python 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =