Sebastian Rittau

Results 127 issues of Sebastian Rittau

I'll just leave this here for potential future consideration as it came up on gitter's typing-dev channel. Typescript has something called [assertion functions](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions), which enables the type checker to understand...

topic: feature

This came up python/typeshed#3521: Currently I can't think of a way to type sentinel values that are often constructed by allowing a certain instance of `object` as the argument. For...

topic: feature

Sometimes, implementations check for the existence of a method on an object before using it. Take this example from Python 2.7's urllib: ```python class addbase: def __init__(self, fp): self.fp =...

topic: feature

This came up in python/typeshed#2287, but I have encountered the same problem myself. As far as I know, currently the only way to annotate a multi-type, fixed length sequence is...

topic: feature

Sometimes a function or method can return one of several types, depending on the passed in arguments or external factors. Best example is probably `open()`, but there are other examples...

topic: feature

Some thoughts copied from srittau/type-stub-pep#94: * Convert to restructed text to fit with the rest of the typing docs (and Python docs in general). * Update a few recommended practices...

topic: documentation

Thoughts on the tutorial document. ## Basic Topics * Set up a basic venv with a pinned mypy version. (For compatibility reasons.) Should add a note about using a current...

topic: documentation

### Describe the feature you'd like: Suppose you want to match text from a paragraph containing `` elements for custom line break handling: ```tsx const MyGreatTextComponent = () => {...

bug

Please document which permissions are required for a workflow to be able to use this actions.

I am not sure if this is something that should be fixed in pyflakes as it only concerns stub files and is a genuine error in Python files. Please consider:...