Top "Typing" questions

For questions related to data types.

How do I type hint a method with the type of the enclosing class?

I have the following code in python 3: class Position: def __init__(self, x: int, y: int): self.x = x self.…

python python-3.x pycharm typing python-3.5
Type annotations for *args and **kwargs

I'm trying out Python's type annotations with abstract base classes to write some interfaces. Is there a way to annotate …

python type-hinting typechecking typing
Java isInstance vs instanceOf operator

The whole generics thing is kinda throwing me for a loop, and more so the RTT. Specificis? Ah well here's …

java inheritance rtti typing
Is Dvorak typing appropriate for programming?

I'm always looking for ways to be more productive, and I've been reading a lot about typing using a Dvorak …

typing dvorak
Deleting tabs when using tabs as spaces

I know that the general tabs vs spaces thing is as old as the hills and mostly comes down to …

visual-studio tabs spaces typing
Is there anyway to make an EditText start typing at the top left corner of the EditText?

I have an EditText with the property: android:minLines="3" However, when I start typing, it types in the middle of …

android android-edittext center typing
Is there a way to "extract" the type of TypeScript interface property?

Let's suppose there's a typing file for library X which includes some interfaces. interface I1 { x: any; } interface I2 { y: { …

typescript typing definitelytyped
Pythonic type hints with pandas?

Let's take a simple function that takes a str and returns a dataframe: import pandas as pd def csv_to_…

python pandas type-hinting typing
How to define a regex-matched string type in Typescript?

Is it possible to define an interface which has some information on the format of a string? Take the following …

regex typescript types typing
Using List/Tuple/etc. from typing vs directly referring type as list/tuple/etc

What's the difference of using List, Tuple, etc. from typing module: from typing import Tuple def f(points: Tuple): return …

python python-3.5 typing type-hinting