# New improved "PEP 695 – Type Parameter Syntax" in Python, PEP mentions Julia

**URL:** <https://discourse.julialang.org/t/new-improved-pep-695-type-parameter-syntax-in-python-pep-mentions-julia/102947>\
**Category:** Offtopic\
**Created:** [August 18, 2023, 12:29pm UTC](https://discourse.julialang.org/t/new-improved-pep-695-type-parameter-syntax-in-python-pep-mentions-julia/102947 "2023-08-18T12:29:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [August 18, 2023, 12:29pm UTC](https://discourse.julialang.org/t/new-improved-pep-695-type-parameter-syntax-in-python-pep-mentions-julia/102947/1 "2023-08-18T12:29:01Z")

</div>

People might not be aware, but Python has (optional) static typing already, the new PEP expands the syntax and mentions Julia and a number of other languages:

> **[PEP 695 – Type Parameter Syntax | peps.python.org](https://peps.python.org/pep-0695/#julia)**
>
> Python Enhancement Proposals (PEPs)

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [August 18, 2023, 12:51pm UTC](https://discourse.julialang.org/t/new-improved-pep-695-type-parameter-syntax-in-python-pep-mentions-julia/102947/2 "2023-08-18T12:51:33Z")

</div>

It seems the type declarations in the PEP don’t actually work. This does:

```julia
struct StructB{Int <: T <: Number}
    x::T
end

```

and

```julia
julia> struct Container{Int <: T <: Number}
                  x::T
              end

julia> function func1(v::Container{T}) where {T <: Real}
       end

```
