News for hackers. Stuff that matters.
Re:An Update on Pytype by sito42 on Wednesday August 20, 2025 @02:02PM (#44964441)
astral bags another one
Re:An Update on Pytype by RS-232 on Wednesday August 20, 2025 @02:14PM (#44964570)
Is ty more mature than pyright or mypy?

I'm currently using pyright, but I'm going to migrate once ty and its vscode extension are given the "production ready" greenlight.

Re:An Update on Pytype by sito42 on Wednesday August 20, 2025 @02:56PM (#44965041)
at this stage I get very few false positives and it's so much easier to configure and use than pyright
Re:An Update on Pytype by denis- on Wednesday August 20, 2025 @03:57PM (#44965762)
ty still doesn't understand match + typing.assert_never pattern, last barrier for me to switching.
Re:An Update on Pytype by marcyb5st on Thursday August 21, 2025 @03:36AM (#44970113)
Personal experience: if you use injector[1] with NewType so that you can give your primitive types a meaning and add them to your injection stack it completely fails. For example:

```python

ModelName = NewType("ModelName", str)

# You bind your string within a module: binder.bind(ModelName, to=ModelName(parsed_args.model_name))

# When you need it: model_name = injector.get(ModelName) # Here it fails, saying that you need "concrete" types or something similar

```

So while it is great already it definitely still has many rough edges still. But it is to be expected from alpha releases

[1] https://pypi.org/project/injector/