> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/statevariables/statevariables.with_type.md).

# StateVariables.with\_type()

`with_type(variable_type: str) →` [`StateVariables`](/glider-ide/api/statevariables.md)

**Query Example**

```python
from glider import *
def query():
	state_vars = StateVariables().with_type('mapping(address => bool)').exec(1)
	for state_var in state_vars:
		print(state_var.name())
		print(state_var.properties())
	return []
```

**Output**

```solidity
"root":{1 item
"print_output":[2 items
0:string"_isExcludedFromFee"
1:string"['private']"
]
}
```
