exaloop / exaloop/codon

Cyclic Type Annotations do not work

Open
#482 2 comments 0 reactions 1 assignee Claimed by @inumanag View on GitHub
enhancement
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

The following code does not compile:
```
class A:
b: 'B'

class B:
a: A
```

Error Message:
```
error: expected type expression
```
Even if you omit the quotes around the B it does not work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.