# Opening Kaito: AI tools are writing Python type hints and running checks on the code they produce. But developers don't always like how they resolve the warnings. Meta's newly published Python Typing Survey describes both practices, along with a more widespread frustration: missing type information in software libraries. I'm Kaito. This is Tomorrow Briefly for October twenty-eighth. Lexi: And I'm Lexi. Today we're staying with that one story: what developers reported, how these checks work, and where an AI-generated fix deserves a closer look. # Meta: what Python developers want from AI and type checkers Kaito: The survey received seventeen hundred ninety-four responses. Among the fifteen hundred seventeen people answering its AI-use question, about forty-three percent said AI tools wrote type hints. Roughly a quarter of respondents to the checker-running question said an AI tool invoked their checker. Those are two separate jobs: describing what kinds of values the code expects, and checking whether the code follows those descriptions. Lexi: Here's a small example. Imagine a function that takes a customer's name and returns a greeting. A type hint can say the name should be text. If another part of the program passes a number, a static checker can flag that mismatch without running the greeting function. It helps catch inconsistent uses of the code. It doesn't establish that the greeting says the right thing. Kaito: Meta gathered these responses from August fifth through September second, through developer communities, social channels, and tool-project websites. About three quarters of respondents had at least five years of Python experience. This is a self-selected, experienced group describing its work, not a random sample of everyone who uses Python. The new development is the publication of the results. Lexi: And the headline difficulty wasn't specific to AI. Nearly two thirds of the fourteen hundred eighty-six people answering the difficulties question selected missing type information in third-party libraries. We'll come back to that, because an agent can inherit those gaps even when the code it writes is reasonable. Kaito: First, there's a revealing connection between letting an agent run a checker and asking it to fix errors. Among the three hundred seventy respondents whose AI tool invoked the checker, about sixty-two percent also used AI to fix checker errors. Among everyone else answering that question, the rate was about nineteen percent. Lexi: So those activities often go together. That doesn't tell us the fixes worked, or that running a checker caused developers to trust AI more. It describes a workflow: generate code, get a complaint from a tool, then let the agent respond to it. The survey doesn't follow those changes through to a measured success rate. Kaito: What did people object to? Lexi: One respondent complained about AI using the broad type called object for everything. Another described coding agents scattering type-ignore comments through the code. Those are different changes, and it's useful to understand them before treating a disappearing warning as a repaired bug. Kaito: Take our greeting function. If its parameter is labeled object instead of text, the declared input can now be a number, text, or another value. But object doesn't turn checking off. The checker still won't let you assume that value has text-specific methods. You may need to check that it's a string before using one. Lexi: Python also has a type called Any. That gives the checker much less control over operations on that value. Object and Any aren't interchangeable. And a type-ignore comment is different again: it tells the checker to suppress a diagnostic. None of these changes, by itself, changes what the greeting function actually does when it runs. Kaito: My code-review question would be: did the function need to accept more kinds of input, or did we only change the declaration to get past a warning? Sometimes a broad input is correct. A logger, for example, might genuinely accept arbitrary objects. But if the greeting needs text, I'd want the implementation and its annotation to agree about that. Lexi: I'd also look at the test for the caller. If the application sends a customer number where a name belongs, accepting both types may leave the original mistake untouched. That's an illustrative review problem, not an incident measured by this survey. It shows why checking the changed behavior belongs alongside checking the annotations. Kaito: Respondents themselves weren't settled on the AI benefit. Nearly thirty percent of fifteen hundred fifty-one people said they weren't sure how useful types were for better AI-assisted coding. Meta says more empirical evidence is needed about which interactions help. The survey gives us practices to investigate, rather than a winning agent configuration. Lexi: Now, those library gaps. A type checker needs descriptions of the library code your program calls, too. Those descriptions can live in separate files called stubs. If a library is missing them, or the stubs don't match its behavior, adding careful annotations to your own functions won't necessarily resolve the warning you're looking at. Kaito: Respondents mentioned dynamic frameworks, decorators, and data-science code, naming packages including Django, NumPy, and pandas. Some described annotations that were inaccurate, incomplete, or too broad. Meta says its Pyrefly team has been working with Quansight on third-party typing, including contributions to pandas-stubs and NumPy. Lexi: For a maintainer, I'd separate a bad call in our code from a missing description in the dependency. They need different fixes. If an agent edits only the caller until the warning vanishes, it may never address the library information that caused the confusion. A useful review would inspect the relevant library signature as well as the proposed patch. Kaito: Is this mostly a learning curve for people who haven't used types before? Lexi: The survey suggests something more specific. Among people using type hints rarely or sometimes, about forty-two percent called the type system too complex or verbose. Among frequent users, it was about fifteen percent. Frequent users were much more likely to report missing library typing instead. The problems people selected differed with how regularly they used the tools. Kaito: But years of typing experience didn't produce that same pattern. Complexity complaints weren't highest in the newest group. And most respondents with zero to two years of typing experience were already regular type-hint users and experienced Python developers. New to typing doesn't necessarily mean new to programming. Lexi: That changes the tutorial I'd write. Start with an existing repository and one useful check, rather than explaining Python from the beginning or presenting every advanced type feature at once. Meta similarly recommends a first check with little configuration and easy-to-understand errors. This is guidance drawn from the responses, not proof that using types more often makes complexity disappear. Kaito: There was also a concrete request for the language itself: better Callable syntax was the most selected missing feature, at about forty-six percent of respondents to that question. A callable is something you can call, such as a function. Its type can describe the arguments it accepts and what it returns. Lexi: Imagine passing a formatting function into a report generator. The generator needs to know what it can pass to that function and what it gets back. That's the kind of relationship callable typing describes. Meta says improving this syntax is a practical area for standards work. It isn't announcing that a new syntax has shipped. Kaito: The checker landscape is changing, too. About half of respondents reporting checker choices selected more than one. These aren't exclusive market shares. Meta develops Pyrefly, and most respondents who selected it also selected another checker. Speed was the leading reason respondents gave for choosing a checker. Lexi: One respondent described a particularly concrete arrangement: Pyright locally, because it understood the team's more unusual typing patterns. In automated checks, they ran Pyrefly first, then Pyright on files where Pyrefly failed, to improve checking performance. Another team used different checkers in developers' editors but relied on Mypy for local and automated linting. Kaito: So a developer's editor and the team's automated gate may not be giving the same answer. Lexi: Inconsistencies were reported by about a third of people answering the difficulties question. Meta recommends documenting intentional differences. For an agent working in a repository, my practical addition would be to give it the team's actual checking command and configuration. Otherwise, it could resolve the editor's complaint while leaving the automated check failing, or the other way around. Kaito: The editor also explains why people value types beyond finding errors. Readability and documentation were the most selected reason for using hints. Respondents mentioned completion, navigation, hover information, and error messages. A function's expected inputs are useful when you're trying to understand a codebase, before you've written anything new. Lexi: Where people seek help has changed across the annual surveys. Stack Overflow use fell, while language-model chat and Python typing documentation rose. Different people answered each year, so this doesn't track individual developers switching services. But it supports Meta's recommendation that errors link directly to short, relevant explanations and examples. Kaito: I'd want an agent's proposed fix to include that explanation when the typing rule isn't obvious. A link lets the reviewer check the rule instead of reverse-engineering it from a confident paragraph. And it gives the next developer somewhere to go when the same warning appears elsewhere in the project. # Closing Lexi: Meta's article links the full survey results and raw data for anyone who wants to explore further. That's Tomorrow Briefly for October twenty-eighth. I'm Lexi. Kaito: And I'm Kaito. Thanks for listening.