Alexander Tikhonov

@tikhonov_a
58 Followers
75 Following
233 Posts

10+ years #python backend engineer, working at smart voice assistant startup, author of #mashumaro and other stuff, street photographer, traveller, #vegan for the animals

Author of @pycharm and @docker bot accounts

GitHubhttps://github.com/Fatal1ty
Threadshttps://threads.net/@tikhonov_a
@pycharm has a handy feature like adding a name import by ⌥+Enter on an underlined unknown name. If you use it and suffer from the fact that the name is added to the existing "from" import at the end, and not in alphabetical order, as linters want, then this option will solve your problem. It is located in Editor → Code Style → #python → Imports.
This is really interesting piece on structuring your URL https://vale.rocks/posts/strong-opinions-on-url-design
Strong Opinions on URL Design

i-have-some-thoughts

Vale.Rocks
From the Tailscale archives: "How NAT traversal works," a deep dive into some networking fundamentals that remains one of our most highly read posts https://tailscale.com/blog/how-nat-traversal-works
How NAT traversal works

Learn how NAT traversal works, how Tailscale can get through and securely connect your devices directly to each other.

Just published #mashumaro 3.15 with the #JSONSchema plugin system! 🎉 I guess the next thing will be plugins for serialization and deserialization. Who knows, maybe this will be my ticket to strict validation and speeding up with #cython. On a side note, I believe I’m among the last developers to discontinue support for #python 3.8.

https://github.com/Fatal1ty/mashumaro/releases/tag/v3.15

Release v3.15 · Fatal1ty/mashumaro

Changes Improved Union and basic types deserialization (#256), highlighted changes: Expected int | float or float | int value can now be passed through without coercion and losing precision Expec...

GitHub
For loops in #Python can assign to more than just plain names. Any assignment target is allowed:
PyCharm Blog (@pycharm@techhub.social)

Inline AI Prompting, Coding Assistance for the dataclass_transform Decorator (PEP 681), and More in PyCharm 2024.3! #Python #Pycharm https://blog.jetbrains.com/pycharm/2024/11/pycharm-2024-3/

TechHub

I'm curious what are all those people who got used to shorten to t.Callable, t.Mapping, t.Coroutine etc. going to write instead in the post-python 3.9 era when these imports will eventually be removed?

#python

IDE is my enemy on the way to not use deprecated aliases from typing module in #python. Just thinking out loud.
Once again, I am convinced that limitations contribute to my productivity growth. During a four-hour flight on a plane, I solved an old unpleasant task that I had been constantly postponing. Interestingly, the solution I wrote down in my TODO app was exactly the same as I had outlined sometime in the past and forgotten about.
If you have a large tree-structured #python project in @pycharm where you’ve changed or added many files, you can make it easier to find the modules that need unit tests written or updated by enabling the option to highlight directories with changes. Go to Version Control → Confirmation → Highlight directories that contain modified files in the Project tree. Don’t forget to add new directories or files to your future commit, otherwise they won’t be highlighted.